Page MenuHomec4science

topbar.component.js
No OneTemporary

File Metadata

Created
Fri, Jul 12, 11:27

topbar.component.js

"use strict";
/*
OBJECTIF: afficher l'entête de la page.
REMARQUES: contient le titre BEAST, le teaser, le fil d'ariance. Le controlleur vérifie
si on se trouve dans le compte de lecteur afin de paramétrer le fil d'ariane.
*/
module.exports = {
bindings: {parentCtrl: '<'},
controllerAs: 'ctrl',
controller: ['$location', '$translate', '$element', function($location, $translate, $element) {
var vm = this;
vm.url = window.location.href.split('?')[0] + '?vid=' + vm.parentCtrl.configurationUtil.vid + '&lang=' + $translate.use();
// console.log(vm.url);
}],
template: `<div class="main-title"><h1><a href="{{ ::ctrl.url }}">{{ 'mainTitle' | customTranslate }}</a></h1><h2>{{ 'subTitle' | customTranslate }}</h2></div>`
//templateUrl: './custom/41SLSP_EPF-prod/js/homepage/templates/topbar.html'
};

Event Timeline