[DURACOM-234] Switch to standalone bootstrapping API

This commit is contained in:
Giuseppe Digilio
2024-03-26 20:52:26 +01:00
parent 0c3e9b1535
commit a8c3af097d
10 changed files with 189 additions and 202 deletions

View File

@@ -7,14 +7,13 @@ import 'reflect-metadata';
*/
import '@angular/localize/init';
import { enableProdMode } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
import { environment } from './environments/environment';
import { AppComponent } from './app/app.component';
import { serverAppConfig } from './modules/app/server-app.config';
if (environment.production) {
enableProdMode();
}
const bootstrap = () => bootstrapApplication(AppComponent, serverAppConfig);
export { ServerAppModule } from './modules/app/server-app.module';
export { renderModule } from '@angular/platform-server';
export { ngExpressEngine } from '@nguniversal/express-engine';
export default bootstrap;