mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 18:18:04 +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);
|
|
}
|
|
}
|
|
|
|
})(); |