]>
Commit | Line | Data |
---|---|---|
1 | import { Component, Inject, ViewEncapsulation } from '@angular/core' | |
2 | ||
3 | export interface GenericHeaderData { | |
4 | titlePage: string | |
5 | titleTooltip?: string | |
6 | } | |
7 | ||
8 | export abstract class GenericHeaderComponent { | |
9 | constructor (@Inject('data') public data: GenericHeaderData) {} | |
10 | } | |
11 | ||
12 | @Component({ | |
13 | selector: 'my-video-list-header', | |
14 | // tslint:disable-next-line:use-component-view-encapsulation | |
15 | encapsulation: ViewEncapsulation.None, | |
16 | templateUrl: './video-list-header.component.html' | |
17 | }) | |
18 | export class VideoListHeaderComponent extends GenericHeaderComponent { | |
19 | constructor (@Inject('data') public data: GenericHeaderData) { | |
20 | super(data) | |
21 | } | |
22 | } |