Ngrx Action Creator Factory
This is an angular 2 provider based - read about the concept at Simple Action Creators for ngrx/store in Angular 2.
This component came out as a result of the open source project Echoes Player - an alternative player for watching and listening to media from youtube.
Angular 2 Support
supports Angular 2 - Final - 2.2.1
npm install ngrx-action-creator-factory --save-dev
- ActionCreatorFactory.create(action: string, payload?: any)
First, import the ActionCreatorFactory to your module:
Next, use the ngrx-action-creator-factory either as a static factory or as an injectable provider:
To start developing tdd/bdd style:
npm run dev
This will: compile ts files, watch for changes and start the test task. Whenever a ts file is changed, it will rerun the tests.