In one of my application, I have a requirement to add a specific class when it has any data irrespective of it's input type (email, text) using AngularJS:
In this plunk, just type any thing in the text box to change the border color.
code for reference
<body ng-app="">
<input type='text' ng-model='Custom' ng-class="{red : Custom.length}">
<label ng-bind='Custom'></label>
</body>
In a similar way I want it for all the input types.
In case of email field. When user typed wrong email, it's not working because model will not get value when it is invalid.