New Up Store Instance
Open the src/app/store/index.ts file.
reducers
Map
First, create a new object that maps a property within the state tree to a reducer:
const reducers: ReducerMap = {
sidenav: sidenavReducer
};
This declares a new sidenav
property within our state tree along with the sidenavReducer
function that we declared previously.
New Up Store
Then, simply new up the Store
class providing the reducers map and export the object:
export const store = new Store(reducers);