Angular sets these CSS classes. It is up to your application to provide useful styling.
ng-invalid
, ng-valid
input
widget).ng-pristine
, ng-dirty
input
widget applies ng-pristine
class
to a new input widget element which did not have user interaction. Once the user interacts with
the input widget the class is changed to ng-dirty
.ng-widget
, ng-directive
Old browser support
ng:include
elements in CSS, because of the :
character. For this reason angular also sets ng-include
class on any element which has :
character in the name by replacing :
with -
.