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.
$apply() triggers model changes and subsequently updates the view.
Unfortunately, $apply() may return before the view has been updated. This can happen, for instance, when the view update involves the (asynchronous) processing of templates, and probably for other reasons.
There is no way in AngularJS to listen for when the view update has completed. As such, it's impossible to know when the DOM reflects the view update. This is a problem if AngularJS is used in conjunction with other libraries - for instance, jQuery plug-in that perform decorations on the DOM.
I think the problem is of a general nature, even though in my particular case I noticed it because of . The use of $includeLoaded listeners does not address my use case, since the templates are recursive and I don't know which $includeLoaded call will be the last one.