[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[X] Feature request
[ ] Documentation issue or request
Currently we need to define a selector for every select operation und use it inside our components.
It would be great if we could inject selected slice of state into the components with an @select annotation, like it is done in redux-angular: https://github.com/angular-redux/store/blob/master/articles/select-pattern.md
Very little advantage over the select operator and more magic..
This has been discussed at length before, but besides decorators not having access to DI, we're not considering adding these to the API.
Too bad those lengthy discussions are now inaccessible with store issues section gone.
@fxck 馃 :)
The enthusiasm about decorators here makes me question the lifespan of the effects decorator. https://github.com/ngrx/platform/blob/master/docs/effects/README.md
I have created a simple Select decorator. You can look for more info here https://github.com/sandangel/ngrx-utils
Most helpful comment
I have created a simple Select decorator. You can look for more info here https://github.com/sandangel/ngrx-utils