aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.templates.css-styling.ngdoc
blob: 11eba2d1b79bc9358fbb8726d24736dd36edd100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@ngdoc overview
@name Developer Guide: Templates: Working With CSS in Angular
@description


Angular sets these CSS classes. It is up to your application to provide useful styling.

# CSS classes used by angular

* `ng-invalid`, `ng-valid`
  - **Usage:** angular applies this class to an input widget element if that element's input does
    notpass validation. (see {@link api/angular.module.ng.$compileProvider.directive.input input} widget).

* `ng-pristine`, `ng-dirty`
  - **Usage:** angular {@link api/angular.module.ng.$compileProvider.directive.input 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`.


## Related Topics

* {@link dev_guide.templates Angular Templates}
* {@link dev_guide.forms Angular Forms}