Created
January 27, 2015 18:45
-
-
Save chrnx-dev/5e9bc8bfb1f4ff02d8fb to your computer and use it in GitHub Desktop.
Make sure to send all to the view without $apply
This file contains 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
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