1 import { Component, OnDestroy, OnInit } from '@angular/core'
2 import { ActivatedRoute, Router } from '@angular/router'
4 import { NotificationsService } from 'angular2-notifications'
6 import { AbstractVideoList } from './shared'
7 import { VideoService } from '../shared'
10 selector: 'my-videos',
11 styleUrls: [ './shared/abstract-video-list.scss' ],
12 templateUrl: './shared/abstract-video-list.html'
14 export class MyVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
17 protected router: Router,
18 protected route: ActivatedRoute,
19 protected notificationsService: NotificationsService,
20 private videoService: VideoService
30 this.subActivatedRoute.unsubscribe()
33 getVideosObservable () {
34 return this.videoService.getMyVideos(this.pagination, this.sort)