export class VideoSupportComponent {
@Input() video: VideoDetails = null
- @ViewChild('modal') modal: NgbModal
+ @ViewChild('modal', { static: true }) modal: NgbModal
videoHTMLSupport = ''
) { }
show () {
- this.videoHTMLSupport = this.markdownService.enhancedMarkdownToHTML(this.video.support)
this.modalService.open(this.modal)
+
+ this.markdownService.enhancedMarkdownToHTML(this.video.support)
+ .then(r => this.videoHTMLSupport = r)
}
}