1 import { Component, Input, ViewChild } from '@angular/core'
2 import { MarkdownService } from '@app/videos/shared'
4 import { VideoDetails } from '../../../shared/video/video-details.model'
5 import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
8 selector: 'my-video-support',
9 templateUrl: './video-support.component.html',
10 styleUrls: [ './video-support.component.scss' ]
12 export class VideoSupportComponent {
13 @Input() video: VideoDetails = null
15 @ViewChild('modal') modal: NgbModal
20 private markdownService: MarkdownService,
21 private modalService: NgbModal
27 this.videoHTMLSupport = this.markdownService.enhancedMarkdownToHTML(this.video.support)
28 this.modalService.open(this.modal)