@@ -3,7 +3,7 @@ import {RouterModule} from "@angular/router";
33import { rootRouterConfig } from "./app.routes" ;
44import { AppComponent } from "./app.component" ;
55import { GithubService } from "./github/shared/github.service" ;
6- import { FormsModule } from "@angular/forms" ;
6+ import { FormsModule , ReactiveFormsModule } from "@angular/forms" ;
77import { BrowserModule } from "@angular/platform-browser" ;
88import { HttpModule } from "@angular/http" ;
99import { AboutComponent } from './about/about.component' ;
@@ -12,10 +12,11 @@ import {RepoBrowserComponent} from './github/repo-browser/repo-browser.component
1212import { RepoListComponent } from './github/repo-list/repo-list.component' ;
1313import { RepoDetailComponent } from './github/repo-detail/repo-detail.component' ;
1414import { LocationStrategy , HashLocationStrategy } from '@angular/common' ;
15+ import { ContactComponent } from './contact/contact.component' ;
1516
1617@NgModule ( {
17- declarations : [ AppComponent , AboutComponent , RepoBrowserComponent , RepoListComponent , RepoDetailComponent , HomeComponent ] ,
18- imports : [ BrowserModule , FormsModule , HttpModule , RouterModule . forRoot ( rootRouterConfig ) ] ,
18+ declarations : [ AppComponent , AboutComponent , RepoBrowserComponent , RepoListComponent , RepoDetailComponent , HomeComponent , ContactComponent ] ,
19+ imports : [ BrowserModule , FormsModule , ReactiveFormsModule , HttpModule , RouterModule . forRoot ( rootRouterConfig ) ] ,
1920 providers : [ GithubService , { provide : LocationStrategy , useClass : HashLocationStrategy } ] ,
2021 bootstrap : [ AppComponent ]
2122} )
0 commit comments