mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 04:53:06 +00:00
fixed issues with ngrx platform upgrade: selectors, tests and router state in the dev tools
This commit is contained in:
@@ -25,7 +25,8 @@ import { CoreModule } from './core/core.module';
|
||||
import { AppModule } from './app.module';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { StoreRouterConnectingModule } from '@ngrx/router-store';
|
||||
import { RouterStateSerializer, StoreRouterConnectingModule } from '@ngrx/router-store';
|
||||
import { DSpaceRouterStateSerializer } from './shared/ngrx/dspace-router-state-serializer';
|
||||
|
||||
export function init(cache: TransferState) {
|
||||
return () => {
|
||||
@@ -70,6 +71,10 @@ export function HttpLoaderFactory(http: Http) {
|
||||
deps: [
|
||||
TransferState
|
||||
]
|
||||
},
|
||||
{
|
||||
provide: RouterStateSerializer,
|
||||
useClass: DSpaceRouterStateSerializer
|
||||
}
|
||||
]
|
||||
})
|
||||
|
Reference in New Issue
Block a user