SyntaxFix
Write A Post
Hire A Developer
Questions
You can $apply your changes only if $apply is not already in progress. You can update your code as
$apply
if(!$scope.$$phase) $scope.$apply();