Other options include using ```$timeout()``` and ```if (!$scope.$$phase) {...}```