Issue
I wish to run a callback function whenever $apply
is called on a scope. Is there a pre/post $apply
hook or some event that I can bind to, to achieve this?
Solution
I don't know why You need that, but there is no pre/post $apply
event.
I guess you call scope.$apply
in your code, so you can emit event there before and after. Generally you should avoid calling scope.$apply
, exception is when you update model outside Angular context (for example in signalR event)
Answered By - Darkves
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.