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'; import { FormsModule } from '@angular/forms';
@NgModule({ @NgModule({
declarations: [ declarations: [
AppComponent, AppComponent,
SearchComponent SearchComponent
], ],
imports: [ imports: [
BrowserModule, BrowserModule,
FormsModule FormsModule
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]
}) })
export class AppModule { } export class AppModule { }

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

Loading…
Cancel
Save