Validation Example In below example we have used model object with two properties (1)User and (2)Email. And ng-model binds the INPUT elements to the model. And SPAN color is CHANGE if value is $dirty or $INVALID for email. And we use directive ng-show here