I have the following state defined in my app module.
$stateProvider
.state('app', {
abstract: true,
url: '/',
views: {
'header': {
templateUrl: 'header.tpl.html'
},
'content': {
template: 'Content goes here'
},
'footer': {
templateUrl: 'footer.tpl.html'
}
}
});
But, I want to put header and footer in separate angular modules and load them as module dependency. Like - app.header & app.footer
Since, I can not redeclare a state. And, two states with same url doesn't work. So, is there any way I can achieve this?