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

Commit 4f9eb2c

Browse files
joakimblNarretz
authored andcommitted
docs(form): add info about pending prop and class
Closes #12704
1 parent 43769fb commit 4f9eb2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ng/directive/form.js

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function nullFormRenameControl(control, name) {
2525
* @property {boolean} $dirty True if user has already interacted with the form.
2626
* @property {boolean} $valid True if all of the containing forms and controls are valid.
2727
* @property {boolean} $invalid True if at least one containing control or form is invalid.
28+
* @property {boolean} $pending True if at least one containing control or form is pending.
2829
* @property {boolean} $submitted True if user has submitted the form even if its invalid.
2930
*
3031
* @property {Object} $error Is an object hash, containing references to controls or
@@ -329,6 +330,7 @@ function FormController(element, attrs, $scope, $animate, $interpolate) {
329330
* # CSS classes
330331
* - `ng-valid` is set if the form is valid.
331332
* - `ng-invalid` is set if the form is invalid.
333+
* - `ng-pending` is set if the form is pending.
332334
* - `ng-pristine` is set if the form is pristine.
333335
* - `ng-dirty` is set if the form is dirty.
334336
* - `ng-submitted` is set if the form was submitted.

0 commit comments

Comments
 (0)