- this.videoChannelService.videoChannelLoaded
- .subscribe(videoChannel => this.videoChannel = videoChannel)
+ this.videoChannelSub = this.videoChannelService.videoChannelLoaded
+ .subscribe(async videoChannel => {
+ this.videoChannel = videoChannel
+
+ this.descriptionHTML = await this.markdownService.textMarkdownToHTML(this.videoChannel.description)
+ this.supportHTML = await this.markdownService.enhancedMarkdownToHTML(this.videoChannel.support)
+ })
+ }
+
+ ngOnDestroy () {
+ if (this.videoChannelSub) this.videoChannelSub.unsubscribe()