Closed mraible closed 8 years ago
Currently, we use the following syntax for locking down states when using ui-router:
$stateProvider.state('jhi-health', { parent: 'admin', url: '/health', sp: { authorize: { group: 'ROLE_ADMIN' } }
Other projects (e.g. JHipster) use the following syntax:
$stateProvider.state('jhi-health', { parent: 'admin', url: '/health', data: { authorities: ['ROLE_ADMIN'], pageTitle: 'health.title' }
I'm opening this issue to support both formats and help us add support for ui-router 1.0.
Currently, we use the following syntax for locking down states when using ui-router:
Other projects (e.g. JHipster) use the following syntax:
I'm opening this issue to support both formats and help us add support for ui-router 1.0.