-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
state.$$permissionState is not a function #352
Comments
As I see |
My |
Yes you can of course :) |
@masterspambot I just tried and adding |
No you don't need to. The case is that |
I get this error using the unminified version of
angular-permission
but only in one particular state in my app. It appears to me that for some reasonangular-permission
does not decorate it with this$$permissionState
property as it does on the other states.Here is a sample of it's state definition:
The
canActivate
permission is always returningtrue
so that we can always access this state. The other states I am redirecting to activation have following definition:Here is the
isActivated
permission:In the case that the
isActivated
permission is rejected I receive an error code from server that is intercepted and invalidates the License service. When first received the error code is caught by the interceptor that emits a signal. In therun
method of the module is the handling:The
$state.go
statement is causing the error. Any clues why is it happening? The redirect is happening on the second attempt to access theoffices
state for example. I tried also to inherit a base abstract state and then useactivation
but no luck again..The text was updated successfully, but these errors were encountered: