Hi Danny,
Angular 1.x has indeed a flat naming register, where everything you register gets in. Not only your controllers, but also directives and services, vars and constants. I probably even forgot to list something in there. For larger projects this is less then convenient. So we are up to solve this ourselves. The thing your considered is moduleName.thingName a solution I see on a regular base. It might not be pretty, but it gets the job done. I do name my directive controllers usually as directiveNameController, and use controllerAs directiveName to hook them up to the view. However, I don’t register my controllers separate from my directives, mainly to prevent polluting the namespace. Regards Sander -- 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.
