Re:Code Organization in Large AngularJS and JavaScript Appli...
by liberte9 on Tuesday April 23, 2013 @11:09AM
(#5595570)
I'm not sure I agree with the idea of adding utility methods to the $rootScope to avoid wiring in dependencies repeatedly. I would probably go with defining a utility class and indeed injecting it into every controller that needs it. I like the idea of having my utility methods clearly defined in one place. Any opinions here on the pros/cons?
[ Parent
| on HN ]