mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
23 lines
863 B
Text
23 lines
863 B
Text
@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} directive).
|
|
|
|
* `ng-pristine`, `ng-dirty`
|
|
- **Usage:** angular {@link api/angular.module.ng.$compileProvider.directive.input input} directive 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 forms Angular Forms}
|