Joined May 2015
·

Ara Yeressian

Armenia
·
·

Posted to 'Safe' $apply in Angular.JS over 1 year ago

What if in function callback that has been provided to safeApply contains some $scope changes that angular already digested it. And at the meantime not all the scope variable digest has been finished yet. So in that case we will have (phase == '$apply' || phase == '$digest') == true and the changes in function provided will not take effect. Maybe I miss something.

Achievements
1 Karma
0 Total ProTip Views