Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
docs(forms): generated CSS classes for forms and inputs must have a n…
Browse files Browse the repository at this point in the history
…g prefix
  • Loading branch information
matsko committed Feb 28, 2014
1 parent 0c8a88b commit 0d034a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/ng/directive/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,11 @@ function FormController(element, attrs, $scope, $animate) {
*
* ## Animation Hooks
*
* Animations in ngForm are triggered when any of the associated CSS classes are added and removed. These
* classes are: `.pristine`, `.dirty`, `.invalid` and `.valid` as well as any other validations that
* are performed within the form. Animations in ngForm are similar to how they work in ngClass and
* animations can be hooked into using CSS transitions, keyframes as well as JS animations.
* Animations in ngForm are triggered when any of the associated CSS classes are added and removed.
* These classes are: `.ng-pristine`, `.ng-dirty`, `.ng-invalid` and `.ng-valid` as well as any
* other validations that are performed within the form. Animations in ngForm are similar to how
* they work in ngClass and animations can be hooked into using CSS transitions, keyframes as well
* as JS animations.
*
* The following example shows a simple way to utilize CSS transitions to style a form element
* that has been rendered as invalid after it has been validated:
Expand Down
4 changes: 2 additions & 2 deletions src/ng/directive/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -1264,8 +1264,8 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
* ## Animation Hooks
*
* Animations within models are triggered when any of the associated CSS classes are added and removed
* on the input element which is attached to the model. These classes are: `.pristine`, `.dirty`,
* `.invalid` and `.valid` as well as any other validations that are performed on the model itself.
* on the input element which is attached to the model. These classes are: `.ng-pristine`, `.ng-dirty`,
* `.ng-invalid` and `.ng-valid` as well as any other validations that are performed on the model itself.
* The animations that are triggered within ngModel are similar to how they work in ngClass and
* animations can be hooked into using CSS transitions, keyframes as well as JS animations.
*
Expand Down

0 comments on commit 0d034a9

Please sign in to comment.