File

libs/video-stat-dashboard/src/services/top-list.service.ts

Index

Methods

Constructor

constructor(store: Store)
Parameters :
Name Type Optional
store Store<VideoStatsState> no

Methods

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);
  }
}

results matching ""

    No results matching ""