1 import { Component, OnDestroy, OnInit } from '@angular/core'
2 import { AbstractVideoList } from '../../shared/video/abstract-video-list'
3 import { ActivatedRoute } from '@angular/router'
4 import { Router } from '@angular/router'
5 import { NotificationsService } from 'angular2-notifications'
6 import { VideoService } from '../../shared/video/video.service'
9 selector: 'my-account-videos',
10 templateUrl: './account-videos.component.html',
11 styleUrls: [ './account-videos.component.scss' ]
13 export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
14 titlePage = 'My videos'
15 currentRoute = '/account/videos'
17 constructor (protected router: Router,
18 protected route: ActivatedRoute,
19 protected notificationsService: NotificationsService,
20 private videoService: VideoService) {
32 getVideosObservable () {
33 return this.videoService.getMyVideos(this.pagination, this.sort)