mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
17 lines
668 B
TypeScript
17 lines
668 B
TypeScript
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
|
import {ApplicationRef, enableProdMode} from '@angular/core';
|
|
import {environment} from './environments/environment';
|
|
import {AppModule} from './app/app.module';
|
|
import {enableDebugTools} from '@angular/platform-browser';
|
|
|
|
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.error(err));
|