mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2024-12-24 07:06:38 +00:00
21 lines
726 B
TypeScript
21 lines
726 B
TypeScript
import '@angular/compiler';
|
|
import { ApplicationRef, enableProdMode } from '@angular/core';
|
|
import { enableDebugTools } from '@angular/platform-browser';
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
import { AppModule } from './app/app.module';
|
|
import { environment } from './environments/environment';
|
|
|
|
if (environment.production) {
|
|
enableProdMode();
|
|
}
|
|
|
|
platformBrowserDynamic()
|
|
.bootstrapModule(AppModule)
|
|
.then((moduleRef) => {
|
|
const applicationRef = moduleRef.injector.get(ApplicationRef);
|
|
const componentRef = applicationRef.components[0];
|
|
// allows to run `ng.profiler.timeChangeDetection();`
|
|
enableDebugTools(componentRef);
|
|
})
|
|
.catch((err) => console.log(err));
|