@InjectStore decorator
@InjectStore decorator is responsible for injecting store and state variables into actions class
First parameter is Path to state
@InjectStore((currentPath: string[]) => {
return currentPath.indexOf('search') >= 0
? ['entities', '${stateIndex}']
: ['${stateIndex}'];
})Second parameter is initial state
@InjectStore('todos/sports-todos', {
name: '',
description: ''
})Last updated