]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+video-channels/video-channels.component.ts
Decrease AP video cache
[github/Chocobozzz/PeerTube.git] / client / src / app / +video-channels / video-channels.component.ts
CommitLineData
170726f5
C
1import { Component, OnInit } from '@angular/core'
2import { ActivatedRoute } from '@angular/router'
3import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
4import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
5
6@Component({
7 templateUrl: './video-channels.component.html',
8 styleUrls: [ './video-channels.component.scss' ]
9})
10export class VideoChannelsComponent implements OnInit {
11 videoChannel: VideoChannel
12
13 constructor (
14 private route: ActivatedRoute,
15 private videoChannelService: VideoChannelService
16 ) {}
17
18 ngOnInit () {
19 const videoChannelId = this.route.snapshot.params['videoChannelId']
20
21 this.videoChannelService.getVideoChannel(videoChannelId)
22 .subscribe(videoChannel => this.videoChannel = videoChannel)
23 }
24}