All controllers app-wide are put into one registry, right? (see $ControllerProvider#register #https://github.com/angular/angular.js/blob/v1.4.3/src/ng/controller.js#L38). I'm looking for a reliable way to avoid naming collisions. See the plunker below:
http://plnkr.co/edit/2nRIO3?p=info I _like_ registering my directive-controllers as well and passing by name in the directive definition fn (as opposed to passing in any old function). Does anyone have strong opinions how to accomplish this? I've considered psuedo-namespacing my controllers (eg; .controller('myImmediteParentModule.myControllerName`, ...) but that seems a bit smelly. Thanks! -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
