Loading …
There was an error loading this resource. Please try again later.
Improve this Doc
AngularJS sets these CSS classes. It is up to your application to provide useful styling.
CSS classes used by AngularJS
ng-scope
ng-isolate-scope
- Usage: AngularJS applies this class to any element for which a new isolate scope is defined.
ng-binding
- Usage: AngularJS applies this class to any element that is attached to a data binding, via
ng-bind
or{{}}
curly braces, for example. (see databinding guide)
- Usage: AngularJS applies this class to any element that is attached to a data binding, via
ng-invalid
,ng-valid
- Usage: AngularJS applies this class to a form control widget element if that element's input does not pass validation. (see input directive)
ng-pristine
,ng-dirty
- Usage: AngularJS ngModel directive applies
ng-pristine
class to a new form control widget which did not have user interaction. Once the user interacts with the form control, the class is changed tong-dirty
.
- Usage: AngularJS ngModel directive applies
ng-touched
,ng-untouched
- Usage: AngularJS ngModel directive applies
ng-untouched
class to a new form control widget which has not been blurred. Once the user blurs the form control, the class is changed tong-touched
.
- Usage: AngularJS ngModel directive applies