In my app, I have the parent route listed below:
.state('app',{
url: '/app',
templateUrl: 'views/app.html',
resolve: loadSequence('modernizr','moment'),
abstract: true,
css:['assets/css/theme-1.css'],
resolve: {
loginRequired: loginRequired
}
})
The resolve is applied at the parent level, so all child routes will inherit the loginRequired
property. Is there a way to exclude one specific child route from this inherited behavior? Below you can see one of my child routes:
.state('app.passwordreset',{
url: '/app/reset/:token',
templateUrl: 'views/app_resetpass.html',
resolve: loadSequence('modernizr','moment','resetCtrl'),
css:['assets/css/theme-1.css']
})
Thank you!