]>
Commit | Line | Data |
---|---|---|
1 | import { Component, Input } from '@angular/core' | |
2 | import { Video } from '@app/shared/shared-main' | |
3 | ||
4 | @Component({ | |
5 | selector: 'my-video-cell', | |
6 | styleUrls: [ 'video-cell.component.scss' ], | |
7 | templateUrl: 'video-cell.component.html' | |
8 | }) | |
9 | export class VideoCellComponent { | |
10 | @Input() video: Video | |
11 | ||
12 | getVideoUrl () { | |
13 | return Video.buildWatchUrl(this.video) | |
14 | } | |
15 | } |