From 49b2cde6f6a668b5f73ea20eb20976eca7303eb7 Mon Sep 17 00:00:00 2001 From: zahragh Date: Fri, 22 Aug 2014 11:51:46 -0700 Subject: [PATCH] Update form.js Fix documentation for $setSubmitted and document $submitted property --- src/ng/directive/form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ng/directive/form.js b/src/ng/directive/form.js index d4152ac3a2ce..ffd8f5fda949 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -19,6 +19,7 @@ SUBMITTED_CLASS = 'ng-submitted'; * @property {boolean} $dirty True if user has already interacted with the form. * @property {boolean} $valid True if all of the containing forms and controls are valid. * @property {boolean} $invalid True if at least one containing control or form is invalid. + * @property {boolean} $submitted True if user has submitted the form. * * @property {Object} $error Is an object hash, containing references to all invalid controls or * forms, where: @@ -242,7 +243,7 @@ function FormController(element, attrs, $scope, $animate) { /** * @ngdoc method - * @name form.FormController#setSubmitted + * @name form.FormController#$setSubmitted * * @description * Sets the form to its submitted state.