$scope.$applyAsync schedules an expression to be run after the current digest cycle, reducing excessive digest cycles and enhancing performance.
$scope.$applyAsync