mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-28 21:25:55 +01:00
19 lines
493 B
JavaScript
19 lines
493 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.layout.header')
|
|
.controller('HeaderController', HeaderController);
|
|
|
|
HeaderController.$inject = ['$scope', '$window', 'getParameterByName'];
|
|
|
|
function HeaderController($scope, $window, getParameterByName) {
|
|
var vm = this;
|
|
if($window.location.search) {
|
|
vm.searchInput = getParameterByName('q', $window.location.search);
|
|
console.log('vm.searchInput at header:' + vm.searchInput);
|
|
}
|
|
}
|
|
|
|
})(); |