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

Commit 9178c31

Browse files
committed
docs(guide/forms): fix quotes around updateOn that broke ngModelOptions example
1 parent 546cb42 commit 9178c31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/guide/forms.ngdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ This allows us to extend the above example with these features:
185185

186186
By default, any change to the content will trigger a model update and form validation. You can
187187
override this behavior using the {@link ng.directive:ngModelOptions ngModelOptions} directive to
188-
bind only to specified list of events. I.e. `ng-model-options="{ updateOn: "blur" }"` will update
188+
bind only to specified list of events. I.e. `ng-model-options="{ updateOn: 'blur' }"` will update
189189
and validate only after the control loses focus. You can set several events using a space delimited
190190
list. I.e. `ng-model-options="{ updateOn: 'mousedown blur' }"`
191191

@@ -202,7 +202,7 @@ only when the control loses focus (blur event).
202202
<div ng-controller="ControllerUpdateOn">
203203
<form>
204204
Name:
205-
<input type="text" ng-model="user.name" ng-model-options="{ updateOn: "blur" }" /><br />
205+
<input type="text" ng-model="user.name" ng-model-options="{ updateOn: 'blur' }" /><br />
206206
Other data:
207207
<input type="text" ng-model="user.data" /><br />
208208
</form>

0 commit comments

Comments
 (0)