--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/9MPPOcpVZYM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Yeah, javascript is kind of funny that way.
This is the main reason I use coffeescript. If you are accessing stuff on the this variable, you can just change the function from -> to => and preserve the this context. Makes it a lot simpler to deal with callbacks.
Another common thing to do is just say something like var that = this before the callbacks and use that instead of this inside.
E
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.