2018-08-24 10:46:48 +02:00
|
|
|
import { enableProdMode, NgModuleRef } from '@angular/core';
|
2018-06-13 18:34:10 +02:00
|
|
|
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
|
|
|
|
|
|
import { AppModule } from './app/app.module';
|
|
|
|
import { environment } from './environments/environment';
|
|
|
|
|
|
|
|
if (environment.production) {
|
2018-06-19 16:55:50 +02:00
|
|
|
enableProdMode();
|
2018-06-13 18:34:10 +02:00
|
|
|
}
|
|
|
|
|
2018-06-19 16:55:50 +02:00
|
|
|
platformBrowserDynamic()
|
|
|
|
.bootstrapModule(AppModule)
|
2019-03-05 14:06:36 +01:00
|
|
|
.then(() => {
|
|
|
|
if ('serviceWorker' in navigator && environment.production) {
|
|
|
|
navigator.serviceWorker.register('ngsw-worker.js');
|
|
|
|
}
|
|
|
|
})
|
2018-06-19 16:55:50 +02:00
|
|
|
.catch(err => console.log(err));
|