-
Notifications
You must be signed in to change notification settings - Fork 445
/
main.web.prod.ts
23 lines (19 loc) · 1021 Bytes
/
main.web.prod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* Bootstraps the application and makes the ROUTER_PROVIDERS and the APP_BASE_HREF available to it.
* @see https://angular.io/docs/ts/latest/api/platform-browser-dynamic/index/bootstrap-function.html
*/
import { enableProdMode } from '@angular/core';
import { platformBrowser } from '@angular/platform-browser';
import { WebModuleNgFactory } from './web.module.ngfactory';
enableProdMode();
platformBrowser().bootstrapModuleFactory(WebModuleNgFactory);
// In order to start the Service Worker located at "/worker-basic.min.js"
// uncomment this line. More about Service Workers here
// https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
//
// if ('serviceWorker' in navigator) {
// (<any>navigator).serviceWorker.register('/worker-basic.min.js').then((registration: any) =>
// console.log('ServiceWorker registration successful with scope: ', registration.scope))
// .catch((err: any) =>
// console.log('ServiceWorker registration failed: ', err));
// }