I would like to execute a piece of code after every $digest loop, after the DOM has been constructed, but before the render. I want this on every $apply, not just the ones after linking/compiling. Where do I add my code?
I am not going to provide my particular use case because I would like to know how to do this in general. If you would like to help me with my particular problem, I have a separate question: Resize IFRAME to Remove Scrollbars
you can do $rootScope.$watch(function(){ ... })
. The logic in the fn will be called every $digest
loop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With