mikemclin / angular-acl

Role-based permissions for AngularJS
196 stars 49 forks source link

How to reload the ACL data before routeProvider resolves? #8

Closed alanoliveira closed 9 years ago

alanoliveira commented 9 years ago

I'm trying to use AclService.resume() as the example, but when I need reload the ACL data form web it resolves after the routeProvider resolves and denied the access. Is there some way to prevent the routeProvider resolves until the ACL is successfully loaded?

mikemclin commented 9 years ago

I added the ability to run resume() during the config phase. I updated the README file. Let me know if this works for you.

mikemclin commented 9 years ago

Closing...