import { VideoChannel } from '@app/shared/video-channel/video-channel.model'
import { UserSubscriptionService } from '@app/shared/user-subscription'
import { ComponentPagination } from '@app/shared/rest/component-pagination.model'
+import { Subject } from 'rxjs'
@Component({
selector: 'my-account-subscriptions',
totalItems: null
}
+ onDataSubject = new Subject<any[]>()
+
constructor (
private userSubscriptionService: UserSubscriptionService,
private notifier: Notifier
res => {
this.videoChannels = this.videoChannels.concat(res.data)
this.pagination.totalItems = res.total
+
+ this.onDataSubject.next(res.data)
},
error => this.notifier.error(error.message)