Skip to content

Commit 0d034a9

Browse files
committed
docs(forms): generated CSS classes for forms and inputs must have a ng prefix
1 parent 0c8a88b commit 0d034a9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/ng/directive/form.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,11 @@ function FormController(element, attrs, $scope, $animate) {
287287
*
288288
* ## Animation Hooks
289289
*
290-
* Animations in ngForm are triggered when any of the associated CSS classes are added and removed. These
291-
* classes are: `.pristine`, `.dirty`, `.invalid` and `.valid` as well as any other validations that
292-
* are performed within the form. Animations in ngForm are similar to how they work in ngClass and
293-
* animations can be hooked into using CSS transitions, keyframes as well as JS animations.
290+
* Animations in ngForm are triggered when any of the associated CSS classes are added and removed.
291+
* These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any
292+
* other validations that are performed within the form. Animations in ngForm are similar to how
293+
* they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well
294+
* as JS animations.
294295
*
295296
* The following example shows a simple way to utilize CSS transitions to style a form element
296297
* that has been rendered as invalid after it has been validated:

src/ng/directive/input.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1264,8 +1264,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
12641264
* ## Animation Hooks
12651265
*
12661266
* Animations within models are triggered when any of the associated CSS classes are added and removed
1267-
* on the input element which is attached to the model. These classes are: `.pristine`, `.dirty`,
1268-
* `.invalid` and `.valid` as well as any other validations that are performed on the model itself.
1267+
* on the input element which is attached to the model. These classes are: `.ng-pristine`, `.ng-dirty`,
1268+
* `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
12691269
* The animations that are triggered within ngModel are similar to how they work in ngClass and
12701270
* animations can be hooked into using CSS transitions, keyframes as well as JS animations.
12711271
*

0 commit comments

Comments
 (0)