1 |
43765
|
argiro.kok
|
// the polyfills must be the first thing imported
|
2 |
|
|
import 'angular2-universal/polyfills';
|
3 |
|
|
|
4 |
|
|
// Angular 2
|
5 |
|
|
import {enableProdMode} from '@angular/core';
|
6 |
|
|
// Angular 2 Universal
|
7 |
|
|
import {prebootComplete} from 'angular2-universal';
|
8 |
|
|
|
9 |
|
|
// enable prod for faster renders
|
10 |
|
|
enableProdMode();
|
11 |
|
|
|
12 |
|
|
import {ngApp} from './main.browser';
|
13 |
|
|
|
14 |
|
|
// on document ready bootstrap Angular 2
|
15 |
|
|
document.addEventListener('DOMContentLoaded', () => {
|
16 |
|
|
|
17 |
|
|
ngApp()
|
18 |
|
|
.then(prebootComplete);
|
19 |
|
|
|
20 |
|
|
});
|