My service class, before calling a web service, needs to get a property called dataForUpdate from my state. Currently, I\'m doing it like this:
Not strictly a direct answer to the question, but I found this page looking for how to retrieve a single value from the store.
To achieve this, you can inject the State object from @ngrx/store as shown below:
import { State } from '@ngrx/store';
constructor (private state: State) {
let propertyValue = state.getValue().path.to.state.property;
}
The state object holds the current state in a private _value property, accessed by the .getValue() method.