import { enableProdMode , NgZone } from '@angular/core' ; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ; import { NavigationStart , Router } from '@angular/router' ; import { singleSpaAngular , getSingleSpaExtraProviders } from 'single-spa-angular' ; import { AppModule } from './app/app.module' ; import { environment } from './environments/environment' ; if ( environment . production ) { enableProdMode ( ) ; } const lifecycles = singleSpaAngular ( { bootstrapFunction : ( ) => platformBrowserDynamic ( getSingleSpaExtraProviders ( ) ) . bootstrapModule ( AppModule ) , template : '<navbar-root />' , NgZone , Router , NavigationStart , } ) ; export const bootstrap = lifecycles . bootstrap ; export const mount = lifecycles . mount ; export const unmount = lifecycles . unmount ;