Module: plugins/angular

An angular module that hooks into $stateChangeStart event on UI-Router and lets routes define permissions

Source:
Example
.factory('yourLoginFactory', function(authConfig) {
  // on login
  authConfig.setUser(yourUser) // <- YOUR USER MUST HAVE CAN METHOD
})