Skip to content

Order of files by modules #39

Description

@uaKorona

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions