import { Component, OnInit } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
import { Component, OnInit } from '@angular/core'
import { ActivatedRoute } from '@angular/router'
import { Account } from '@app/shared/account/account.model'
import { AccountService } from '@app/shared/account/account.service'
import { VideoChannel } from '../../../../../shared/models/videos'
import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
import { Account } from '@app/shared/account/account.model'
import { AccountService } from '@app/shared/account/account.service'
import { VideoChannel } from '../../../../../shared/models/videos'
import { VideoChannelService } from '@app/shared/video-channel/video-channel.service'
- .do(account => this.account = account)
- .flatMap(account => this.videoChannelService.listAccountVideoChannels(account.id))
- .map(res => res.data)
+ .pipe(
+ tap(account => this.account = account),
+ flatMap(account => this.videoChannelService.listAccountVideoChannels(account)),
+ map(res => res.data)
+ )