//app.js
var app = angular.module('myApp', []);
app.run(function($rootScope, $sessionStorage, AuthToken) {  
	if(AuthToken.getToken()) { 
	     $rootScope.userDetail = $sessionStorage.userDetail;}
});

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