22 lines
611 B
TypeScript
22 lines
611 B
TypeScript
// Angular 2 Universal
|
|
import { bootstrap } from '@angular/platform-browser-dynamic';
|
|
import { provideRouter } from '@angular/router';
|
|
import { HTTP_PROVIDERS } from '@angular/http';
|
|
import { disableDeprecatedForms, provideForms} from '@angular/forms';
|
|
// Application
|
|
import {App, routes} from './app/app.component';
|
|
// import {routes} from './app/app.routes';
|
|
|
|
// you must return bootstrap for client.ts
|
|
export function ngApp() {
|
|
return bootstrap(App, [
|
|
...HTTP_PROVIDERS,
|
|
// FORM_DIRECTIVES,
|
|
// FORM_PROVIDERS,
|
|
disableDeprecatedForms(),
|
|
|
|
provideForms(),
|
|
provideRouter(routes)
|
|
]);
|
|
}
|