//app.js
app.run(function($rootScope, $sessionStorage, AuthToken, permissions) {  
	if(AuthToken.getToken()) { 
	     $rootScope.userDetail = $sessionStorage.userDetail;
	      permissions.setPermissions($sessionStorage.userDetail.permissionList);
  }
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.5/angular.min.js