ImmutableJs Setup

app.module.ts
import { NgModule } from '@angular/core'
import { environment } from '../environment/environment';

import { StoreModule } from '@ng-state/store';
import { ImmutableJsDataStrategyModule } from '@ng-state/immutablejs-data-strategy';


@NgModule({
  imports: [
    BrowserModule,
    StoreModule.provideStore(initialState, environment.isProd),
    ImmutableJsDataStrategyModule
  ]
})
export class AppModule {}

Last updated