2017-01-09 11:37:57 +03:00
|
|
|
/*
|
|
|
|
|
* Angular bootstraping
|
|
|
|
|
*/
|
|
|
|
|
import { platformBrowser } from '@angular/platform-browser';
|
|
|
|
|
import { decorateModuleRef } from './app/environment';
|
|
|
|
|
/*
|
|
|
|
|
* App Module
|
|
|
|
|
* our top level module that holds all of our components
|
|
|
|
|
*/
|
2017-01-10 11:32:26 +03:00
|
|
|
import { AppModuleNgFactory } from '../compiled/src/app/app.module.ngfactory';
|
|
|
|
|
|
2017-01-09 11:37:57 +03:00
|
|
|
/*
|
|
|
|
|
* Bootstrap our Angular app with a top level NgModule
|
|
|
|
|
*/
|
|
|
|
|
export function main(): Promise<any> {
|
|
|
|
|
return platformBrowser()
|
|
|
|
|
.bootstrapModuleFactory(AppModuleNgFactory)
|
|
|
|
|
.then(decorateModuleRef)
|
|
|
|
|
.catch(err => console.error(err));
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-10 11:32:26 +03:00
|
|
|
export function bootstrapDomReady() {
|
|
|
|
|
document.addEventListener('DOMContentLoaded', main);
|
|
|
|
|
}
|
2017-01-09 11:37:57 +03:00
|
|
|
|
2017-01-10 11:32:26 +03:00
|
|
|
bootstrapDomReady();
|