I have this function:
function scopeMutateSuccess(modalInstance, state) { $rootScope.$apply(function() { modalEventConfig.statusType = 'success'; modalEventConfig.nodeStatus = 'Completed Successfully'; }); } In the call stack...there a is a digest() that is called before this function. However, it is still running while this function gets called and I get a digest() already in progress. I need my own digest() in this function or otherwise the view does not get updated with the scope member values. The first digest() is being called somewhere else and not by me so I can't controller it firing.
Is there a event listener for when a digest() ends or a way to keep them from clashing?
$rootScope.$apply()? Anyhow take a look at this github.com/yearofmoo/AngularJS-Scope.SafeApply/blob/master/src/…