Skip to content

Commit

Permalink
docs(angular): suggest the correct ngrx router state serializer in da…
Browse files Browse the repository at this point in the history
…ta persistence docs (#15921)
  • Loading branch information
leosvelperez authored Mar 28, 2023
1 parent ae3a55f commit c41bbb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/shared/guides/misc-data-persistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,19 @@ class TodoEffects {
}
```

The StoreRouterConnectingModule must be configured with an appropriate serializer. The `DefaultRouterStateSerializer` provides the full router state instead of the `MinimalRouterStateSerializer` that is used without configuration.
The StoreRouterConnectingModule must be configured with an appropriate serializer. The `FullRouterStateSerializer` provides the full router state instead of the `MinimalRouterStateSerializer` that is used without configuration.

```typescript
import { NgModule } from '@angular/core';
import {
StoreRouterConnectingModule,
DefaultRouterStateSerializer,
FullRouterStateSerializer,
} from '@ngrx/router-store';

@NgModule({
imports: [
StoreRouterConnectingModule.forRoot({
serializer: DefaultRouterStateSerializer,
serializer: FullRouterStateSerializer,
}),
],
})
Expand Down

1 comment on commit c41bbb2

@vercel
Copy link

@vercel vercel bot commented on c41bbb2 Mar 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev

Please sign in to comment.