-
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
Error: state.$$permissionState is not a function #325
Comments
And what is the version of the rest of the components |
Sorry for missing information, I use both latest version: ui-router (0.3.1) and angular-permission (4.0.3). |
Did you injected dependencies correctly? https://github.com/Narzerus/angular-permission/wiki/Installation-guide-for-ui-router |
Sorry, I go out for holiday on a few day. I use both latest version with ui-router 0.3.1 and angular-permission 4.0.3. It throw error when I go to a state. |
No it's not.... Definitely not. |
Source of your problem is that ui-router is not loaded before ui-permission and |
I load in right order. My full module define.
I need some time to find problem. |
Any news about this issue? I have a similar error when running my tests. |
+1 - can we get this re-opened and looked at? |
+1 here as well. I'm loading the scripts in the right order (ui-router, permission, permission-ui), and adding the dependencies to the module in the right order ('ui.router', 'permission', 'permission.ui'), yet I still get this error. UI Router is 0.3.2 and permission is 5.1.0. |
Ill look at it ASAP. |
In my case it only fails when deploying into production (which runs some extra steps like uglify). The temporal fix was to avoid the min.js scripts in favor of the ones that aren't minified. |
I had the same problem and i found a solution. @spyhunter88 seeing your declaration order, you must declare permission and permission-ui after ui.route but not before your module (where you declare states) Try this order
Maybe the same applies to other facing the same issue :) PS: My scenario
|
Related to #365 |
I have followed the above instruction and #365 issue, but state.$$permissionState is not a function still happen :( |
This issue should not be closed |
I was able to solve the issue on my end by using the non-minified version of angular permission. |
@victorjspinto your solution perfectly solved my problem, Thanks. |
Hi, I face this issue when just inject to angular module. I've search but no found anywhere :(.
I include js like that:
Full error log:
I use angular 1.5.8.
The text was updated successfully, but these errors were encountered: