-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hello!
Can I use angular modules to change an order of my angular files ?
For example:
I have the main angular module and two additional modules:
angular.module('app', ['mod1']);
angular.module('mod1', ['mod2']);
angular.module('mod2', []);Each of additional modules has a controller in a separated file:
mod1Controller.js
angular.module('mod1').controller('mod1Controller', mod1Controller);mod2Controller.js
angular.module('mod2').controller('mod2Controller', mod2Controller);I need that in my index.html will have the next order
(file mod2Controller.js should be injected before mod1Controller.js):
<script src="app.js"></script>
<script src="mod2Controller.js"></script>
<script src="mod1Controller.js"></script>Is it possible ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels