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

Commit df35bb7

Browse files
feat(form): add ability to reset a form to its pristine state - corrections
1 parent 28a1bf9 commit df35bb7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ng/directive/form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ function FormController(element, attrs) {
129129
* Sets the form to its pristine state.
130130
*
131131
* This method can be called to remove the 'ng-dirty' class and set the form to its pristine
132-
* state (ng-pristine class). Calling this method will also affect all the controls contained in
133-
* this form.
132+
* state (ng-pristine class). This method will also propagate to all the controls contained
133+
* in this form.
134134
*
135135
* Setting a form back to a pristine state is often useful when we want to 'reuse' a form after
136136
* saving or resetting it.

test/ng/directive/formSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ describe('form', function() {
341341

342342
it('should set form and controls to the pristine state', function() {
343343

344-
var form = scope.form, input = doc.find('input').eq(0)
344+
var form = scope.form, input = doc.find('input').eq(0);
345345

346346
control.$setViewValue('');
347347
scope.$apply();

0 commit comments

Comments
 (0)