Last active
October 9, 2016 13:24
-
-
Save matthieu-D/daf92e3ab0fe44338efc165f2bd2a553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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