1 import { Component, OnInit } from '@angular/core'
2 import { ActivatedRoute } from '@angular/router'
3 import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
4 import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
7 templateUrl: './video-channels.component.html',
8 styleUrls: [ './video-channels.component.scss' ]
10 export class VideoChannelsComponent implements OnInit {
11 videoChannel: VideoChannel
14 private route: ActivatedRoute,
15 private videoChannelService: VideoChannelService
19 const videoChannelId = this.route.snapshot.params['videoChannelId']
21 this.videoChannelService.getVideoChannel(videoChannelId)
22 .subscribe(videoChannel => this.videoChannel = videoChannel)