--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/d-UMs0VATOoJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
constructor: (@$scope) ->
To unsubscribe from this group, send email to angular+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/O4uZ5xJXPJcJ.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/HLtudAoYEaUJ.
+1 for this approach. I love coffeescript and angular and while coffeescript's classes are tempting to someone coming from a classical background the functional approach suggested here is really terse and powerful providing easier hiding of private stuff and saves on unnecessary binding with => and @.
By the way, now you can create controllers in modules you no longer need to hack coffeescript controllers onto the global namesake with @ all the time.
Pete
...from my mobile.