diff options
| author | Vojta Jina | 2012-03-30 12:07:19 -0700 | 
|---|---|---|
| committer | Vojta Jina | 2012-04-03 10:10:44 -0700 | 
| commit | 06d0955074f79de553cc34fbf945045dc458e064 (patch) | |
| tree | 131c952906c145bcd9c6e39721d42e2bce82cee5 /src/AngularPublic.js | |
| parent | a22e0699bef61a7083b0b628fb6043531c0ca1c0 (diff) | |
| download | angular.js-06d0955074f79de553cc34fbf945045dc458e064.tar.bz2 | |
feat(ngModel): update model on each key stroke (revert ngModelInstant)
It turns out that listening only on "blur" event is not sufficient in many scenarios,
especially when you use form validation you always had to use ngModelnstant
e.g. if you want to disable a button based on valid/invalid form.
The feedback we got from our apps as well as external apps is that the
ngModelInstant should be the default.
In the future we might provide alternative ways of suppressing updates
on each key stroke, but it's not going to be the default behavior.
Apps already using the ngModelInstant can safely remove it from their
templates. Input fields without ngModelInstant directive will start propagating
the input changes into the model on each key stroke.
Diffstat (limited to 'src/AngularPublic.js')
| -rw-r--r-- | src/AngularPublic.js | 1 | 
1 files changed, 0 insertions, 1 deletions
| diff --git a/src/AngularPublic.js b/src/AngularPublic.js index 8597de9c..1326bf8c 100644 --- a/src/AngularPublic.js +++ b/src/AngularPublic.js @@ -98,7 +98,6 @@ function publishExternalAPI(angular){              ngModel: ngModelDirective,              ngList: ngListDirective,              ngChange: ngChangeDirective, -            ngModelInstant: ngModelInstantDirective,              required: requiredDirective,              ngRequired: requiredDirective,              ngValue: ngValueDirective | 
