What is the difference between $ evalAsync and $ applyAsync? I understand that when I use $ evalAsync from the directive, the expression will be evaluated before the browser displays it.
So, as an example, if I wanted to scroll to a certain position on the page, but not show the transition to that place, I could use this to scroll to a position, and since it fires before the browser displays, this visual error will disappear.
However, what is the purpose of applyAsync? When is it a good idea to use one over the other?
dom angularjs
puopg
source share