That ' s how I implemented it for my project at work . In my run function , I listen for the $ stateChangedStart event , and check the permissions I attached to the state definition in the router against the authenticated user ' s permission . If you invoke event . preventDefault , you can stop the transition to where the user was trying to go , then redirect to somewhere else , like the login page if they haven ' t logged in yet . Sorry , don ' t want to post snippets since it ' s proprietary . <| sep |> I don ' t really know a whole lot about the Z 5 but it looks pretty good . It ' s waterproof too and has micro SD support . The S 6 edge is a great phone but plagued with poor battery life . <| sep |> Meh most likely just adware . <| sep |> There certainly are people that deserve to be locked away from humanity forever . This guy ' s one of ' em .