GitHub

  • import { Injectable } from ‘ @angular/core ‘ ; import { Action } from ‘ @ngrx/store ‘ ; import { ActionCreatorFactory } from ‘ ngrx-action-creator-factory ‘ ; @ Injectable () export class NowPlaylistActions { static MEDIA_ENDED = ‘ [NOW PLAYLIST] MEDIA_ENDED ‘ ; static QUEUE = ‘ [NOW PLAYLIST] QUEUE ‘ ; static SELECT = ‘ [NOW PLAYLIST] SELECT ‘ ; // as injectable constructor ( private acf : ActionCreatorFactory ) { this .
  • The factory allows to decalre a minimal action creator declaration with a typed payload for the action creator function and have type support when using this function.
  • Whenever a ts file is changed, it will rerun the tests.
  • npm install ngrx-action-creator-factory –save-dev
  • The service came out as a result of the open source project Echoes Player – an alternative player for watching and listening to media from youtube.

ngrx-action-creator-factory – An Action Creator Factory for ngrx
Continue reading “GitHub”