Skip to content

Commit 32806ca

Browse files
committed
docs(guide/css-styling): form controls are not always input elements
People frequently write custom form controls using the `ngModel` directive, this just refactors the text to be more clear that this is possible (imho).
1 parent 9c113aa commit 32806ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/content/guide/css-styling.ngdoc

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ Angular sets these CSS classes. It is up to your application to provide useful s
2121
`{{}}` curly braces, for example. (see {@link guide/databinding databinding} guide)
2222

2323
* `ng-invalid`, `ng-valid`
24-
- **Usage:** angular applies this class to an input widget element if that element's input does
24+
- **Usage:** angular applies this class to a form control widget element if that element's input does
2525
not pass validation. (see {@link ng.directive:input input} directive)
2626

2727
* `ng-pristine`, `ng-dirty`
28-
- **Usage:** angular {@link ng.directive:input input} directive applies `ng-pristine` class
29-
to a new input widget element which did not have user interaction. Once the user interacts with
30-
the input widget the class is changed to `ng-dirty`.
28+
- **Usage:** angular {@link ng.directive:ngModel ngModel} directive applies `ng-pristine` class
29+
to a new form control widget which did not have user interaction. Once the user interacts with
30+
the form control, the class is changed to `ng-dirty`.
3131

3232
* `ng-touched`, `ng-untouched`
3333
- **Usage:** angular {@link ng.directive:ngModel ngModel} directive applies `ng-untouched` class
34-
to a new input widget element which has not been blurred. Once the user blurs the input widget
34+
to a new form control widget which has not been blurred. Once the user blurs the form control,
3535
the class is changed to `ng-touched`.
3636

3737

0 commit comments

Comments
 (0)