Closed Paragonid closed 8 years ago
Switching these lines in module dependency fixes it:
angular.module('module', [
'ui.router'
'permission' # error
'ct.ui.router.extras'
])
angular.module('module', [
'ui.router'
'ct.ui.router.extras'
'permission' # no error
])
Discussion here https://github.com/Narzerus/angular-permission/issues/185
I get an exception during angular-permission ( https://github.com/Narzerus/angular-permission ) initialization "TypeError: $state.get(...).getState is not a function" after declaring the dependency on 'ct.ui.router.extras' in here:
It happens for toState.name == 'login', my route declaration is following:
As I understand, ui-router-extras changes something in the .getState() leading to this exception, can anyone suggest a way to solve it?