3 import { platformBrowser } from '@angular/platform-browser';
4 import { decorateModuleRef } from './app/environment';
8 * our top level module that holds all of our components.
10 import { AppModuleNgFactory } from '../compiled/src/app/app.module.ngfactory';
13 * Bootstrap our Angular app with a top level NgModule.
15 export function main(): Promise<any> {
16 return platformBrowser()
17 .bootstrapModuleFactory(AppModuleNgFactory)
18 .then(decorateModuleRef)
19 .catch((err) => console.error(err));
22 switch (document.readyState) {
24 document.addEventListener('DOMContentLoaded', _domReadyHandler, false);
32 function _domReadyHandler() {
33 document.removeEventListener('DOMContentLoaded', _domReadyHandler, false);