Issue
What is the difference between $evalAsync and $applyAsync? My understanding is that when I use $evalAsync from a directive, the expression will evaluate before the browser renders.
So as an example, if I wanted to scroll to a particular position on a page but not show the jump to that spot, I could use this to scroll to the position and since it fires before the browser has rendered, this visual bug would be gone.
However, what is the purpose of applyAsync? When is it a good idea to use one over the other?
Solution
The
$evalAsync()
will execute in the current digest
$applyAsync()
in a scheduled one.
If you need details: Ben Nadel or stack here
Answered By - Luckylooke
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.