blob: 2894e7df6bea3373b137a673b5ad81af1190206d (
plain) (
tree)
|
|
import { Component, Input, ViewChild } from '@angular/core';
import { ModalDirective } from 'ng2-bootstrap/components/modal';
import { Video } from '../shared';
@Component({
selector: 'my-video-magnet',
templateUrl: './video-magnet.component.html'
})
export class VideoMagnetComponent {
@Input() video: Video = null;
@ViewChild('modal') modal: ModalDirective;
constructor() {
// empty
}
show() {
this.modal.show();
}
hide() {
this.modal.hide();
}
}
|