]>
Commit | Line | Data |
---|---|---|
c894a1ea C |
1 | import { Component, Input } from '@angular/core' |
2 | import { VideoDetails } from '@app/shared/shared-main' | |
3 | ||
4 | @Component({ | |
5 | selector: 'my-video-attributes', | |
6 | templateUrl: './video-attributes.component.html', | |
7 | styleUrls: [ './video-attributes.component.scss' ] | |
8 | }) | |
9 | export class VideoAttributesComponent { | |
10 | @Input() video: VideoDetails | |
11 | ||
7e8f1960 C |
12 | getVideoHost () { |
13 | return this.video.channel.host | |
14 | } | |
15 | ||
c894a1ea C |
16 | getVideoTags () { |
17 | if (!this.video || Array.isArray(this.video.tags) === false) return [] | |
18 | ||
19 | return this.video.tags | |
20 | } | |
21 | } |