Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active October 9, 2016 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/daf92e3ab0fe44338efc165f2bd2a553 to your computer and use it in GitHub Desktop.
Save matthieu-D/daf92e3ab0fe44338efc165f2bd2a553 to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { UniversalModule } from 'angular2-universal';
import { App, Home } from './app/app';
@NgModule({
bootstrap: [ App ],
declarations: [ App, Home ],
imports: [
UniversalModule, // NodeModule, NodeHttpModule, and NodeJsonpModule are included
FormsModule,
RouterModule.forRoot([
{ path: '', component: Home, pathMatch: 'full' }
])
]
})
export class MainModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment