import { Component, Input, ViewChild } from '@angular/core'
-import { MarkdownService } from '@app/videos/shared'
-
import { VideoDetails } from '../../../shared/video/video-details.model'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
+import { MarkdownService } from '@app/shared/renderer'
@Component({
selector: 'my-video-support',
constructor (
private markdownService: MarkdownService,
private modalService: NgbModal
- ) {
- // empty
- }
+ ) { }
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)
}
}