2011-06-06 15:50:35 +00:00
|
|
|
@ngdoc overview
|
|
|
|
|
@name Developer Guide: Templates: Working With CSS in Angular
|
|
|
|
|
@description
|
|
|
|
|
|
|
|
|
|
|
2011-09-08 20:56:29 +00:00
|
|
|
Angular sets these CSS classes. It is up to your application to provide useful styling.
|
2011-06-06 15:50:35 +00:00
|
|
|
|
2011-09-08 20:56:29 +00:00
|
|
|
# CSS classes used by angular
|
2011-06-06 15:50:35 +00:00
|
|
|
|
2013-09-05 12:03:45 +00:00
|
|
|
* `ng-scope`
|
|
|
|
|
- **Usage:** angular applies this class to any element that where a new {@link api/ng.$rootScope.Scope scope}
|
|
|
|
|
is defined. (see {@link guide/scope scope} guide for more information about scopes)
|
|
|
|
|
|
|
|
|
|
* `ng-binding`
|
|
|
|
|
- **Usage:** angular applies this class to any element that is attached to a data binding, via `ng-bind` or
|
|
|
|
|
{{}} curly braces, for example. (see {@link guide/dev_guide.templates.databinding databinding} guide)
|
|
|
|
|
|
2011-09-08 20:56:29 +00:00
|
|
|
* `ng-invalid`, `ng-valid`
|
|
|
|
|
- **Usage:** angular applies this class to an input widget element if that element's input does
|
2013-09-05 12:03:45 +00:00
|
|
|
not pass validation. (see {@link api/ng.directive:input input} directive)
|
2011-06-06 15:50:35 +00:00
|
|
|
|
2011-09-08 20:56:29 +00:00
|
|
|
* `ng-pristine`, `ng-dirty`
|
2012-06-12 06:49:24 +00:00
|
|
|
- **Usage:** angular {@link api/ng.directive:input input} directive applies `ng-pristine` class
|
2011-09-08 20:56:29 +00:00
|
|
|
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`.
|
2011-06-06 15:50:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
## Related Topics
|
|
|
|
|
|
|
|
|
|
* {@link dev_guide.templates Angular Templates}
|
2012-05-24 21:49:47 +00:00
|
|
|
* {@link forms Angular Forms}
|