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 has been archived by the owner on Apr 12, 2024. It is now read-only.
In ngModelDirective $apply is used to change model's value on event different from default and to change model's $touched state. But I suggest to use safe $apply instead, because we can't guarantee that some event (blur for example) won't be triggered from the outside during digest cycle. Real life example. Try to change value in the first input - you'll get "$digest already in progress" error.
The text was updated successfully, but these errors were encountered:
On $destroy the directive manipulates the focused element in a way that makes it lose focus (real world example: boostrap typeahead.destroy removes wrapper objects).
In ngModelDirective $apply is used to change model's value on event different from default and to change model's $touched state. But I suggest to use safe $apply instead, because we can't guarantee that some event (blur for example) won't be triggered from the outside during digest cycle. Real life example. Try to change value in the first input - you'll get "$digest already in progress" error.
The text was updated successfully, but these errors were encountered: