1(function () { 2 'use strict'; 3 4 angular.module('saddleApp.controllers') 5 .controller('footer', footer); 6 7 footer.$inject = ["$scope", "$state", "$rootScope", "$http", "$window", "sessionService"]; 8 9 function footer($scope, $state, $rootScope, $http, $window, sessionService) { 10 11 var vm = this; 12 13 vm.user = sessionService.getUser(); 14 15 /* tells angular-breadcrumb to ignore scope associated with this view. 16 required for breadcrumbs to work in other views */ 17 vm.breadcrumb = {ignore:true}; 18 19 20 vm.currentYear = new Date().getFullYear(); 21 22 vm.goBack = function(){ 23 $window.history.go(-1); 24 } 25 vm.goForward = function(){ 26 $window.history.go(1); 27 } 28 29 vm.goToSignin = function() { 30 $state.go('main.login', {}, {}); 31 } 32 33 vm.logout = function() { 34 $state.go('main.logout', {}, {}); 35 } 36 37 return vm; 38 } 39})();
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.