app.controller('homeCtrl', [ '$rootScope', '$scope', 'Auth', 'localStorageService', '$location', 'azp@oauth3.org' , function ($rootScope, $scope, Auth, localStorageService, $location, Oauth3) { var vm = this; vm.oauth3 = Oauth3.oauth3; vm.notification = true; vm.userName = function(profile){ profile = Auth.getProfile(); return profile.email; }; throw new Error('loaded home controller'); }]);