2018-05-07 15:42:32 -04:00
|
|
|
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
2019-07-20 19:52:47 +02:00
|
|
|
import {ApplicationRef, enableProdMode} from '@angular/core';
|
2018-05-07 15:42:32 -04:00
|
|
|
import {environment} from './environments/environment';
|
|
|
|
import {AppModule} from './app/app.module';
|
2019-07-20 19:52:47 +02:00
|
|
|
import {enableDebugTools} from '@angular/platform-browser';
|
2016-03-12 18:11:19 +01:00
|
|
|
|
2017-06-11 23:33:47 +02:00
|
|
|
if (environment.production) {
|
|
|
|
enableProdMode();
|
2019-07-20 19:52:47 +02:00
|
|
|
}
|
2016-05-04 17:20:21 +02:00
|
|
|
|
2019-07-20 19:52:47 +02:00
|
|
|
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.error(err));
|