mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 05:13:02 -05:00
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { enableProdMode } from '@angular/core';
|
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
import { provideEffects } from '@ngrx/effects';
|
|
import { provideStore } from '@ngrx/store';
|
|
import { AppComponent } from './app/app.component';
|
|
import { ActivityEffects } from './app/store/activity/activity.effects';
|
|
import {
|
|
activityFeatureKey,
|
|
activityReducer,
|
|
} from './app/store/activity/activity.reducer';
|
|
import { StatusEffects } from './app/store/status/status.effects';
|
|
import {
|
|
statusFeatureKey,
|
|
statusReducer,
|
|
} from './app/store/status/status.reducer';
|
|
import { UserEffects } from './app/store/user/user.effects';
|
|
import { userFeatureKey, userReducer } from './app/store/user/user.reducer';
|
|
import { environment } from './environments/environment';
|
|
|
|
if (environment.production) {
|
|
enableProdMode();
|
|
}
|
|
|
|
const reducers = {
|
|
[statusFeatureKey]: statusReducer,
|
|
[activityFeatureKey]: activityReducer,
|
|
[userFeatureKey]: userReducer,
|
|
};
|
|
|
|
bootstrapApplication(AppComponent, {
|
|
providers: [
|
|
provideStore(reducers),
|
|
provideEffects([ActivityEffects, UserEffects, StatusEffects]),
|
|
],
|
|
});
|