Skip to content

Commit

Permalink
Use ng-model-options to enable blur update
Browse files Browse the repository at this point in the history
  • Loading branch information
Huei Tan committed Sep 16, 2015
1 parent f4a1453 commit eeac2f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ You can also add a custom validation message by using `message-id` attribute. It

<label>Blur method</label>
<input type="text" name="number" ng-model="form.number" validator="number" valid-method="blur"/>
<!-- or try ng-model-options="{ updateOn: 'blur' }" -->
<input type="text" name="number" ng-model="form.number" validator="number" ng-model-options="{ updateOn: 'blur' }"/>

<label>Submit method</label>
<form name="Form">
Expand Down

0 comments on commit eeac2f0

Please sign in to comment.