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

ngChange fires before the model changes if the model and change function are passed in via a directive #11349

Closed
nseegmiller opened this issue Mar 17, 2015 · 1 comment

Comments

@nseegmiller
Copy link

If you create a directive that wraps an input field and pass the change function and model to the directive and pass it along to the input field, the change function will fire before the model is updated. This behavior seems to have existed all the way back to 1.2 or even before. When ngModelOptions and updateOn: blur, it still calls the change function before the model is updated. I've created a pretty simple Plunker to demonstrate the issue.

http://plnkr.co/edit/2RLr1GxShY87FVvey4CT?p=preview

@Narretz
Copy link
Contributor

Narretz commented Mar 18, 2015

I think this is a duplicate of #4558

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants