Skip to content

Commit d122810

Browse files
chronickjamesdaily
authored andcommitted
docs(css_styling_guide): add ng-scope and ng-binding classes
I noticed angular was adding these css classes to elements and believe they should be listed in the documentation at this page. The ng-scope class is mentioned in the developer guide, hence the link there, and the ng-binding class is not mentioned anywhere else in the documentation or the guide that I found. Closes angular#3728
1 parent 10d867d commit d122810

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/content/guide/dev_guide.templates.css-styling.ngdoc

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,17 @@ Angular sets these CSS classes. It is up to your application to provide useful s
77

88
# CSS classes used by angular
99

10+
* `ng-scope`
11+
- **Usage:** angular applies this class to any element that where a new {@link api/ng.$rootScope.Scope scope}
12+
is defined. (see {@link guide/scope scope} guide for more information about scopes)
13+
14+
* `ng-binding`
15+
- **Usage:** angular applies this class to any element that is attached to a data binding, via `ng-bind` or
16+
{{}} curly braces, for example. (see {@link guide/dev_guide.templates.databinding databinding} guide)
17+
1018
* `ng-invalid`, `ng-valid`
1119
- **Usage:** angular applies this class to an input widget element if that element's input does
12-
not pass validation. (see {@link api/ng.directive:input input} directive).
20+
not pass validation. (see {@link api/ng.directive:input input} directive)
1321

1422
* `ng-pristine`, `ng-dirty`
1523
- **Usage:** angular {@link api/ng.directive:input input} directive applies `ng-pristine` class

0 commit comments

Comments
 (0)