Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { NgModule } from '@angular/core';
- import { CommonModule } from '@angular/common';
- import { StoreModule } from '@ngrx/store';
- import { StoreDevtoolsModule } from '@ngrx/store-devtools';
- import { routerReducer, RouterState, StoreRouterConnectingModule } from '@ngrx/router-store';
- @NgModule({
- declarations: [],
- imports: [
- CommonModule,
- StoreModule.forRoot(
- {
- auth: () => ({token: 'ciao'}),
- profile: () => 'Maurizio Nardi',
- router: () => routerReducer
- },
- {
- runtimeChecks: {
- strictActionImmutability: true,
- strictActionSerializability: true,
- strictStateImmutability: true,
- strictStateSerializability: true
- }
- }
- ),
- StoreDevtoolsModule.instrument({
- maxAge: 25
- }),
- StoreRouterConnectingModule.forRoot({
- routerState: RouterState.Minimal
- }),
- ]
- })
- export class CoreModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement