move router module into app imports

master
Matt Huntington 9 years ago
parent a962b53f22
commit f29f870377

@ -1,4 +1 @@
<h1>Welcome to {{title}}!!</h1>
<app-about></app-about>
<app-links></app-links>
<app-resume></app-resume>

@ -8,7 +8,16 @@ import { LinksComponent } from './links/links.component';
import { RouterModule } from '@angular/router';
RouterModule.forRoot([
@NgModule({
declarations: [
AppComponent,
AboutComponent,
ResumeComponent,
LinksComponent
],
imports: [
BrowserModule,
RouterModule.forRoot([
{
path: 'about',
component: AboutComponent
@ -21,17 +30,7 @@ RouterModule.forRoot([
path: 'links',
component: LinksComponent
}
]);
@NgModule({
declarations: [
AppComponent,
AboutComponent,
ResumeComponent,
LinksComponent
],
imports: [
BrowserModule
])
],
providers: [],
bootstrap: [AppComponent]

Loading…
Cancel
Save