PageSourceSearch

https://www.alejandrosanz.com/modules/shared/header/headerCtrl.js

js alejandrosanz.com collected 2026-10-02 07:16:35 UTC 769 bytes, 32 lines download raw bytes

1'use strict';
2
3angular.module('alejandrosanz').controller("HeaderCtrl", ['$scope', '$rootScope', '$aside', 'Auth', function($scope, $rootScope, $aside, Auth) {
4
5  $scope.openRegisterModal = function() {
6    Auth.openRegisterModal();
7  }
8  $scope.openLoginModal = function() {
9    Auth.openLoginModal();
10  }
11
12  $scope.rightMenu = $aside({
13    templateUrl: 'modules/shared/menu/menu.tpl.html',
14    controller: 'MenuCtrl',
15    backdrop: true,
16    placement: 'right',
17    show: false
18  });
19
20  $scope.leftMenu = $aside({
21    templateUrl: 'modules/shared/menu/menu.tpl.html',
22    controller: 'MenuCtrl',
23    backdrop: true,
24    placement: 'left',
25    show: false
26  });
27
28  $scope.isCurrentPage = function(state) {
29    return $rootScope.currentState.name === state;
30  };
31
32}]);

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.