-import { Component, OnDestroy, OnInit } from '@angular/core'
-import { AbstractVideoList } from '../../shared/video/abstract-video-list'
-import { ActivatedRoute } from '@angular/router'
-import { Router } from '@angular/router'
+import { Component, OnInit } from '@angular/core'
+import { ActivatedRoute, Router } from '@angular/router'
import { NotificationsService } from 'angular2-notifications'
+import { AbstractVideoList } from '../../shared/video/abstract-video-list'
import { VideoService } from '../../shared/video/video.service'
@Component({
templateUrl: './account-videos.component.html',
styleUrls: [ './account-videos.component.scss' ]
})
-export class AccountVideosComponent extends AbstractVideoList implements OnInit, OnDestroy {
+export class AccountVideosComponent extends AbstractVideoList implements OnInit {
titlePage = 'My videos'
currentRoute = '/account/videos'
super.ngOnInit()
}
- ngOnDestroy () {
- super.ngOnDestroy()
- }
-
getVideosObservable () {
return this.videoService.getMyVideos(this.pagination, this.sort)
}