Let's say that I have a main module:
angular.module('myApp', ['myApp.view1']);
And another module
angular.module('myApp.view1', ['ngRoute'])
the second is in a different project directory. The first module cannot find its dependency only if I also add
<script src="view1/view1.js"></script> in the index.html
but it quickly becomes quite difficult to manage manually if it has a lot of javascript files. What is the best way to manage dependencies between angular modules so that they can recognize each other?
Kkari source
share