Installation
Install the library using Yarn or NPM
yarn
yarn add @ngrx/store @ngrx/effects @ngrx/component-store @gernsdorfer/ngrx-lite
npm
npm install @ngrx/store @ngrx/effects @ngrx/component-store @gernsdorfer/ngrx-lite
Import StoreModule
Import the StoreModule
in your root module
app.module.ts
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
@NgModule({
imports: [
//...
StoreModule.forRoot({}),
// ...
],
bootstrap: [AppComponent],
})
export class AppModule {}