Skip to content

Instantly share code, notes, and snippets.

@alfredobarron
Created August 15, 2016 16:22
Show Gist options
  • Save alfredobarron/0e8941734f1a3464396eb1570c916a81 to your computer and use it in GitHub Desktop.
Save alfredobarron/0e8941734f1a3464396eb1570c916a81 to your computer and use it in GitHub Desktop.
Angular $apply
if (!$scope.$$phase) {
$scope.$apply(function() {
$scope.count = 0;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment