News for hackers. Stuff that matters.
Re:How to do OO in AngularJS by keda on Wednesday July 09, 2014 @09:17PM (#8013096)
Does this code even work? The $s in BaseController seem to come from no where, I believe Angular will inject $scope as first parameter to the constructor, however, in the sample code, it seems to indicate that its pattern. For a good angular+coffeescript scaffold code with basic OO, I recommend take a look at https://github.com/CaryLandholt/AngularFun
Re:How to do OO in AngularJS by huula on Wednesday July 09, 2014 @09:56PM (#8013188)
You are right, it's typo, just for expressing the ideas. Huh, looks like I'm not the first one try this. Good to know. Thanks!
Re:How to do OO in AngularJS by keda on Wednesday July 09, 2014 @10:17PM (#8013246)
You are welcome. Thanks for sharing.