Files
angular-challenges/apps/ngrx-notification/src/main.ts
Alan Dragicevich 65f3d0e3d3 fix(ngrx-notification): compilation error
Due to upgrading to Angular 16,  `REDUCERS` were in the incorrect file and
should have been moved to `app.config.ts` from `main.ts`.
2023-07-06 08:36:24 +12:00

16 lines
411 B
TypeScript

import { appConfig } from './app/app.config';
import { bootstrapApplication } from '@angular/platform-browser';
import { enableProdMode } from '@angular/core';
import { AppComponent } from './app/app.component';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
bootstrapApplication(AppComponent, appConfig).catch((err) =>
console.error(err)
);