+ this.routeSub = this.route.params
+ .pipe(
+ map(params => params[ 'videoChannelId' ]),
+ distinctUntilChanged(),
+ switchMap(videoChannelId => this.videoChannelService.getVideoChannel(videoChannelId)),
+ catchError(err => this.restExtractor.redirectTo404IfNotFound(err, [ 400, 404 ]))
+ )
+ .subscribe(videoChannel => this.videoChannel = videoChannel)
+
+ }