Thursday, March 1, 2018

Actions implement the Action interface in the Redux paradigm at an Angular 4 application.

node_modules\@ngrx\store\src\models.d.ts is where the interface is kept and if you crack it open and look at it you'll see one requirement, a string named "type" specifically. For every action, this string should be formatted with a series of route pieces separated by at symbols like so:

@foo@bar@baz/qux

 
 

Somehow, this route is used to find the reducers. I don't get it yet.

No comments:

Post a Comment