In the following plunkr, can anyone explain why I have to inject 'ui.router' into the first listed submodule, but not any of the subsequent submodules?
http://plnkr.co/edit/nCBeMAKrxvL9CHvLzRdL?p=preview
I thought the ui.router dependency would be available to every submodule after doing this:
angular.module('myapp', ["myapp.route1", "myapp.route2", "ui.router"])
Instead, i have to include ui.router in the first listed dependency (in this case myapp.route):
angular.module('myapp.route1', ["ui.router"])
but not in myapp.route2:
angular.module('myapp.route2', [])
What am I missing?