You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
When using ngModel inside custom directive there is a chance to break ngModelWatch fn. On the first run ngModelWatch will set $modelValue to ngModelGet($scope). Then, if you change property of that scope var (ngModelGet($scope)) it will change the properties on the $modelValue, because it is the same object! So if you have some $formatters they won't be called at all.
When using ngModel inside custom directive there is a chance to break
ngModelWatch
fn. On the first runngModelWatch
will set$modelValue
tongModelGet($scope)
. Then, if you change property of that scope var (ngModelGet($scope)) it will change the properties on the $modelValue, because it is the same object! So if you have some $formatters they won't be called at all.Here is plnkr for demonstration.
The text was updated successfully, but these errors were encountered: