Skip to content

Instantly share code, notes, and snippets.

@chrnx-dev
Created January 27, 2015 18:45
Show Gist options
  • Save chrnx-dev/5e9bc8bfb1f4ff02d8fb to your computer and use it in GitHub Desktop.
Save chrnx-dev/5e9bc8bfb1f4ff02d8fb to your computer and use it in GitHub Desktop.
Make sure to send all to the view without $apply
scope.$on('someEvent', function(e, data){
/**
* Make sure to send information to the view without use $apply
*
**/
scope.$evalAsync(function(){
scope.model = data;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment