libs/video-stat-dashboard/src/services/top-list.service.ts
Methods |
constructor(store: Store
|
||||||
Parameters :
|
getTopList |
getTopList()
|
Returns :
any
|
import { Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { VideoStatsState } from '../+state/video-stats.interfaces';
@Injectable()
export class TopListService {
constructor(private store: Store<VideoStatsState>) { }
getTopList() {
return this.store.select(state => state.videoStats.videoList);
}
}