# Don’t use UI-Router’s resolve

Let’s say you have an app with certain permissions. And let’s say the permissions can usually be determined by the URL. For example, when each URL encodes a resource and you’ll get from the server which permissions the current user has for this resource. Isn’t it then a great idea to use resolve in UI-router, so you don’t have to deal with those pesky promises anymore?

I mean what you’re doing with resolve:

1. Get the permissions and wait app-wide until they are loaded
2. Load the view. Then you can treat permissions synchronously like permissions.EDIT_RESOURCE
PermissionService.then(resp => {
}