master
Matt Huntington 9 years ago
parent aa87754de3
commit 9c47f38b1a

@ -7,15 +7,15 @@ import { SearchComponent } from './search/search.component';
import { FormsModule } from '@angular/forms';
@NgModule({
declarations: [
AppComponent,
SearchComponent
],
imports: [
BrowserModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
declarations: [
AppComponent,
SearchComponent
],
imports: [
BrowserModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }

@ -8,6 +8,7 @@
1. Add search component to app
1. Add Form HTML to search component
1. Import Form functionality into the app
1. Use ngModel to set a component property to the value of an input
## Create a new app
@ -79,3 +80,5 @@ import { FormsModule } from '@angular/forms'; //import FormsModule
})
export class AppModule { }
```
## Use ngModel to set a component property to the value of an input

Loading…
Cancel
Save