2016-09-22 15:54:26 +02:00
|
|
|
// the polyfills must be the first thing imported
|
|
|
|
import 'angular2-universal-polyfills';
|
|
|
|
|
|
|
|
// Angular 2
|
|
|
|
import { enableProdMode} from '@angular/core';
|
|
|
|
import { platformUniversalDynamic } from 'angular2-universal';
|
|
|
|
|
|
|
|
// enable prod for faster renders
|
|
|
|
enableProdMode();
|
|
|
|
|
2016-10-17 10:56:55 +02:00
|
|
|
import { MainModule } from './app.browser.module';
|
2016-09-22 15:54:26 +02:00
|
|
|
|
|
|
|
const platformRef = platformUniversalDynamic();
|
|
|
|
|
|
|
|
// on document ready bootstrap Angular 2
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
|
|
|
platformRef.bootstrapModule(MainModule);
|
|
|
|
|
|
|
|
});
|