Closed SimonSimCity closed 7 years ago
I think you have a problem with state tree structure... I can assume if you reload page in that state you will receive the same error.
Bear in mind that this issue is out of scope of this library, but is related to your business logic case and code.
Today, I tried to create a permission, where the condition changes dynamically. When I now f.e. have a shared property I rely on, the condition isn't re-run if the property changes.
Here's the code I have on my controller:
And here's a snippet of my template, where the first button dynamically shows if the user has the role in my array
Meteor.user().roles
:I've tested it using angular-permission in v5.3.1 and ui-router in v0.3.2.
I saw you adviced others to call
$state.reload()
- well, that's what I tried. And I got the following exception: