Installing and integrating @ngrx/store

We want to first install @ngrx/store:

npm i @ngrx/store --save

We can now provide the single store to our app via the StoreModule. We define these initial slices of state in our CoreModule, which will be available when the app boots, while each lazy loaded feature module adds its own state and reducers later when needed.

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.