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