1 import { Component, OnDestroy, OnInit } from '@angular/core'
2 import { ActivatedRoute, Router } from '@angular/router'
3 import { NotificationsService } from 'angular2-notifications'
4 import { VideoService } from '../../shared/video/video.service'
5 import { AbstractVideoList } from 'app/shared/video/abstract-video-list'
8 selector: 'my-videos-trending',
9 styleUrls: [ '../../shared/video/abstract-video-list.scss' ],
10 templateUrl: '../../shared/video/abstract-video-list.html'
12 export class VideoTrendingComponent extends AbstractVideoList implements OnInit, OnDestroy {
13 titlePage = 'Trending'
14 currentRoute = '/videos/trending'
16 constructor (protected router: Router,
17 protected route: ActivatedRoute,
18 protected notificationsService: NotificationsService,
19 private videoService: VideoService) {
31 getVideosObservable () {
32 return this.videoService.getVideos(this.pagination, this.sort)