In the code below for init angular-ui-router,
If I have two modules, both of them have IndexController, which will ui-router use? Can I find a reference to the specify constructor/function of the controller via something like angular.module('targetModule').findController('IndexController')
?
state: 'index',
url: '/',
views: {
'' : {
templateUrl: 'index',
controller: 'IndexController'
}
}