Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106250086
topbar.component.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Mar 24, 02:13
Size
869 B
Mime Type
text/html
Expires
Wed, Mar 26, 02:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25149137
Attached To
rPRIMOIII Primo_3_package
topbar.component.js
View Options
"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'
,
function
(
$location
,
$translate
)
{
var
vm
=
this
;
vm
.
url
=
window
.
location
.
href
.
split
(
'?'
)[
0
]
+
'?vid='
+
vm
.
parentCtrl
.
configurationUtil
.
vid
+
'&lang='
+
$translate
.
use
();
// console.log(vm);
// 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
Log In to Comment