27 lines
577 B
TypeScript
27 lines
577 B
TypeScript
import { Component, Input, ViewChild } from '@angular/core'
|
|
import { ModalDirective } from 'ngx-bootstrap/modal'
|
|
import { VideoDetails } from '../../shared/video/video-details.model'
|
|
|
|
@Component({
|
|
selector: 'my-video-download',
|
|
templateUrl: './video-download.component.html',
|
|
styles: [ '.resolution-block { margin-top: 20px; }' ]
|
|
})
|
|
export class VideoDownloadComponent {
|
|
@Input() video: VideoDetails = null
|
|
|
|
@ViewChild('modal') modal: ModalDirective
|
|
|
|
constructor () {
|
|
// empty
|
|
}
|
|
|
|
show () {
|
|
this.modal.show()
|
|
}
|
|
|
|
hide () {
|
|
this.modal.hide()
|
|
}
|
|
}
|