From 42f7fe6629b649e957eff13c5c0e3c9ab2a9ebfc Mon Sep 17 00:00:00 2001 From: Nick Donohue Date: Fri, 23 Aug 2013 12:59:07 -0400 Subject: [PATCH] Add ng-scope and ng-binding classes to CSS classes documentation page 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. --- .../guide/dev_guide.templates.css-styling.ngdoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/content/guide/dev_guide.templates.css-styling.ngdoc b/docs/content/guide/dev_guide.templates.css-styling.ngdoc index 529c2398d373..1aca634debd7 100644 --- a/docs/content/guide/dev_guide.templates.css-styling.ngdoc +++ b/docs/content/guide/dev_guide.templates.css-styling.ngdoc @@ -7,9 +7,17 @@ Angular sets these CSS classes. It is up to your application to provide useful s # CSS classes used by angular +* `ng-scope` + - **Usage:** angular applies this class to any element that a {@link api/ng.$rootScope.Scope scope} is attached to. + (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. + (see {@link guide/dev_guide.templates.databinding databinding} guide) + * `ng-invalid`, `ng-valid` - **Usage:** angular applies this class to an input widget element if that element's input does - not pass validation. (see {@link api/ng.directive:input input} directive). + not pass validation. (see {@link api/ng.directive:input input} directive) * `ng-pristine`, `ng-dirty` - **Usage:** angular {@link api/ng.directive:input input} directive applies `ng-pristine` class