-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build provideGlobalState for ngrx to standalone migration
- Loading branch information
Pop John
committed
Jul 12, 2024
1 parent
e39a572
commit 0d61eea
Showing
5 changed files
with
44 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { EnvironmentProviders, importProvidersFrom } from '@angular/core'; | ||
import { EffectsModule } from '@ngrx/effects'; | ||
import { StoreModule } from '@ngrx/store'; | ||
import { coreReducers } from './core'; | ||
import { AuthEffects } from './core/auth'; | ||
import { ChartsEffects } from './core/charts'; | ||
import { FileEffects } from './core/file'; | ||
import { ModelsEffects } from './core/models/models.effects'; | ||
import { ParametersEffects } from './core/parameters'; | ||
import { ScriptEffects } from './core/script'; | ||
import { StatisticsEffects } from './core/statistics'; | ||
import { TerminalEffects } from './core/terminal'; | ||
|
||
export function provideGlobalState(): EnvironmentProviders[] { | ||
return [ | ||
importProvidersFrom(StoreModule.forFeature('core', coreReducers)), | ||
importProvidersFrom( | ||
EffectsModule.forFeature([ | ||
AuthEffects, | ||
ScriptEffects, | ||
FileEffects, | ||
ChartsEffects, | ||
ParametersEffects, | ||
TerminalEffects, | ||
StatisticsEffects, | ||
ModelsEffects | ||
]) | ||
) | ||
]; | ||
} |