 <p>ui-router has a <a href="https://github.com/angular-ui/ui-router/wiki" rel="nofollow"><code>resolve</code></a> method that you can use in your routes.<br/> The <a href="https://github.com/angular-ui/ui-router/wiki" rel="nofollow"><code>resolve</code></a> will tell the routing to wait and resolve something before it moves to the new route.</p> <p>Here are some examples(Your problem is similar to authentication):</p> <ul> <li><a href="http://stackoverflow.com/questions/22537311/angular-ui-router-login-authentication">angular ui-router login authentication</a></li> <li><a href="https://gist.github.com/leon/6550951" rel="nofollow">https://gist.github.com/leon/6550951</a></li> </ul>