get state() returns the current state snapshot. The constructor takes an initial state and initializes the BehaviorSubject. select takes a callback function. That function is called when state$ emits a new state. Within RxJS map the callback function will return a piece of state.
What is state in RxJS?
get state() returns the current state snapshot. The constructor takes an initial state and initializes the BehaviorSubject. select takes a callback function. That function is called when state$ emits a new state. Within RxJS map the callback function will return a piece of state.