From 9c47f38b1a5637fd34ba86cd6d02fa9a126e825d Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Tue, 20 Jun 2017 17:19:08 -0400 Subject: [PATCH] formatting --- starwars/src/app/app.module.ts | 20 ++++++++++---------- use_an_api.md | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/starwars/src/app/app.module.ts b/starwars/src/app/app.module.ts index 831cf7d..2898cc4 100644 --- a/starwars/src/app/app.module.ts +++ b/starwars/src/app/app.module.ts @@ -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 { } diff --git a/use_an_api.md b/use_an_api.md index bab7719..28e2662 100644 --- a/use_an_api.md +++ b/use_an_api.md @@ -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