mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 12:03:03 +00:00
rewrote header reaction to route change as ngrx event
This commit is contained in:
@@ -8,6 +8,7 @@ import { AppComponent } from './app.component';
|
||||
import { HeaderComponent } from './header/header.component';
|
||||
|
||||
import { StoreModule } from "@ngrx/store";
|
||||
import { RouterStoreModule } from "@ngrx/router-store";
|
||||
import { StoreDevtoolsModule } from "@ngrx/store-devtools";
|
||||
|
||||
import reducers from './app.reducers';
|
||||
@@ -31,6 +32,12 @@ import effects from './app.effects';
|
||||
*/
|
||||
StoreModule.provideStore(reducers),
|
||||
|
||||
/**
|
||||
* @ngrx/router-store keeps router state up-to-date in the store and uses
|
||||
* the store as the single source of truth for the router's state.
|
||||
*/
|
||||
RouterStoreModule.connectRouter(),
|
||||
|
||||
/**
|
||||
* Store devtools instrument the store retaining past versions of state
|
||||
* and recalculating new states. This enables powerful time-travel
|
||||
|
Reference in New Issue
Block a user