File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/router-component-store/src/lib/router-history-store Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import { Location as NgLocation } from '@angular/common' ;
22import {
33 APP_INITIALIZER ,
4+ EnvironmentProviders ,
45 FactoryProvider ,
56 inject ,
67 Injectable ,
7- Provider ,
8+ makeEnvironmentProviders ,
89} from '@angular/core' ;
910import {
1011 Event as RouterEvent ,
@@ -49,11 +50,11 @@ interface RouterHistoryState {
4950 * @remarks
5051 * Must be provided by the root injector to capture all navigation events.
5152 */
52- export function provideRouterHistoryStore ( ) : Provider [ ] {
53- return [
53+ export function provideRouterHistoryStore ( ) : EnvironmentProviders {
54+ return makeEnvironmentProviders ( [
5455 provideComponentStore ( RouterHistoryStore ) ,
5556 routerHistoryStoreInitializer ,
56- ] ;
57+ ] ) ;
5758}
5859
5960@Injectable ( )
You can’t perform that action at this time.
0 commit comments