Hacker News new | ask | show | jobs
by lhorie 4429 days ago
Wouldn't you need to be doing `var self = this` in every function you have nested anonymous callbacks touching $scope though?
1 comments

Yes or function.bind() or fat-arrow in Coffeescript. It's usually best practice to move that kind of stuff into a service instead though.