1(function (window, angular) { 2 'use strict'; 3 4 angular 5 .module('RFPe') 6 .controller('userController', UserController); 7 8 UserController.$inject = ['$scope', 'userService', 'loginService']; 9 10 function UserController($scope, userService, loginService) { 11 if (sessionStorage.token){ 12 loginService.registerToken(sessionStorage.token); 13 $scope.userName = sessionStorage.nome; 14 } 15 else{ 16 document.location.href = 'login.html'; 17 } 18 }; 19 20})(window, angular);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.