3 ms·
Wouldn't you need to be doing `var self = this` in every function you have nested anonymous callbacks touching $scope though?
by lhorie 13y ago
Wouldn't you need to be doing `var self = this` in every function you have nested anonymous callbacks touching $scope though?
- davej 13y agoYes or function.bind() or fat-arrow in Coffeescript. It's usually best practice to move that kind of stuff into a service instead though.