Created
May 2, 2016 23:14
-
-
Save erkobridee/c239b6db4dc3939dd4a95694a98e9a43 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function safeScopeApply(){ | |
// safe scope call | |
if( | |
$scope.$root.$$phase !== '$apply' && | |
$scope.$root.$$phase !== '$digest' | |
) { | |
$scope.$apply(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment