Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
lhorie
12y ago
0 comments
Save
Share
Wouldn't you need to be doing `var self = this` in every function you have nested anonymous callbacks touching $scope though?
0 comments
1 comments · 1 top-level
top
newest
oldest
davej
12y ago
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.
j
/
k
navigate · click thread line to collapse