File tree Expand file tree Collapse file tree 5 files changed +6
-51
lines changed Expand file tree Collapse file tree 5 files changed +6
-51
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,10 @@ export class CustomSerializer implements RouterStateSerializer<RouterStateUrl> {
128
128
route = route .firstChild ;
129
129
}
130
130
131
- const { url, root : { queryParams } } = routerState ;
131
+ const {
132
+ url,
133
+ root : { queryParams },
134
+ } = routerState ;
132
135
const { params } = route ;
133
136
134
137
// Only return an object including the URL, params and query params
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import { AuthModule } from './auth/auth.module';
18
18
19
19
import { reducers , metaReducers } from './reducers' ;
20
20
import { schema } from './db' ;
21
- import { CustomRouterStateSerializer } from './shared/utils' ;
22
21
23
22
import { AppComponent } from './core/containers/app.component' ;
24
23
import { environment } from '../environments/environment' ;
@@ -85,14 +84,6 @@ import { AppRoutingModule } from './app-routing.module';
85
84
86
85
CoreModule . forRoot ( ) ,
87
86
] ,
88
- providers : [
89
- /**
90
- * The `RouterStateSnapshot` provided by the `Router` is a large complex structure.
91
- * A custom RouterStateSerializer is used to parse the `RouterStateSnapshot` provided
92
- * by `@ngrx/router-store` to include only the desired pieces of the snapshot.
93
- */
94
- { provide : RouterStateSerializer , useClass : CustomRouterStateSerializer } ,
95
- ] ,
96
87
bootstrap : [ AppComponent ] ,
97
88
} )
98
89
export class AppModule { }
Original file line number Diff line number Diff line change 6
6
MetaReducer ,
7
7
} from '@ngrx/store' ;
8
8
import { environment } from '../../environments/environment' ;
9
- import { RouterStateUrl } from '../shared/utils' ;
10
9
import * as fromRouter from '@ngrx/router-store' ;
11
10
12
11
/**
@@ -31,7 +30,7 @@ import * as fromLayout from '../core/reducers/layout.reducer';
31
30
*/
32
31
export interface State {
33
32
layout : fromLayout . State ;
34
- router : fromRouter . RouterReducerState < RouterStateUrl > ;
33
+ router : fromRouter . RouterReducerState ;
35
34
}
36
35
37
36
/**
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 14
14
"coverage:html" : " nyc report --reporter=html" ,
15
15
"copy:dist" : " ncp dist/ ./node_modules/@ngrx/" ,
16
16
"example:start" : " yarn run cli serve" ,
17
- "example:start:aot" : " yarn run cli serve -prod" ,
17
+ "example:start:aot" : " yarn run cli serve -- prod" ,
18
18
"example:test" : " jest --watch" ,
19
19
"example:build:prod" : " yarn cli build --prod --base-href \" /platform/example-app/\" --output-path \" ./example-dist/example-app\" " ,
20
20
"ci" : " yarn run test && nyc report --reporter=text-lcov | coveralls" ,
You can’t perform that action at this time.
0 commit comments