This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ This allows us to extend the above example with these features:
185
185
186
186
By default, any change to the content will trigger a model update and form validation. You can
187
187
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
189
189
and validate only after the control loses focus. You can set several events using a space delimited
190
190
list. I.e. `ng-model-options="{ updateOn: 'mousedown blur' }"`
191
191
@@ -202,7 +202,7 @@ only when the control loses focus (blur event).
202
202
<div ng-controller="ControllerUpdateOn">
203
203
<form>
204
204
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 />
206
206
Other data:
207
207
<input type="text" ng-model="user.data" /><br />
208
208
</form>
You can’t perform that action at this time.
0 commit comments