1 |
43765
|
argiro.kok
|
// Angular 2 Universal
|
2 |
|
|
import { bootstrap } from '@angular/platform-browser-dynamic';
|
3 |
|
|
import { provideRouter } from '@angular/router';
|
4 |
|
|
import { HTTP_PROVIDERS } from '@angular/http';
|
5 |
|
|
import { disableDeprecatedForms, provideForms} from '@angular/forms';
|
6 |
|
|
// Application
|
7 |
|
|
import {App, routes} from './app/app.component';
|
8 |
|
|
// import {routes} from './app/app.routes';
|
9 |
|
|
|
10 |
|
|
// you must return bootstrap for client.ts
|
11 |
|
|
export function ngApp() {
|
12 |
|
|
return bootstrap(App, [
|
13 |
|
|
...HTTP_PROVIDERS,
|
14 |
|
|
// FORM_DIRECTIVES,
|
15 |
|
|
// FORM_PROVIDERS,
|
16 |
|
|
disableDeprecatedForms(),
|
17 |
|
|
|
18 |
|
|
provideForms(),
|
19 |
|
|
provideRouter(routes)
|
20 |
|
|
]);
|
21 |
|
|
}
|