I've this:

(function (angular) {

    var iconsStartMenuModule = angular.module('IconsStartMenuModule', []);
    iconsStartMenuModule.controller('IconsStartMenuController', ['$scope', 
function ($scope) {
        //...
    }]);
}(angular));


and the App Module:

(function (angular) {
    var mainAppModule = angular.module('MainAppModule', 
['IconsStartMenuModule']);
}(angular));

I'm trying to not create any global variables, the only one i'm using is 
the angular namespace, but every time i want to make a new controller i've 
to make a new module, is this correct?

Another thing, i've always obviously import the new controller with 
<script> tag in my app, i don't thing that it's is scalable, what's the 
best way to do this? 


-- 
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/groups/opt_out.

Reply via email to