Comment on Classy: Cleaner class-based controllers for AngularJSparentComments−lhorie12yWouldn't you need to be doing `var self = this` in every function you have nested anonymous callbacks touching $scope though?−davej12yYes or function.bind() or fat-arrow in Coffeescript. It's usually best practice to move that kind of stuff into a service instead though.
Comments
Wouldn't you need to be doing `var self = this` in every function you have nested anonymous callbacks touching $scope though?
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.