diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-11 16:53:55 -0500 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-11 16:53:55 -0500 |
commit | 40e096d8795e0930c99aacbc4116fceacb13ef41 (patch) | |
tree | 017e940a90e87729ac69eb7ea33be0ff1c585632 /recipeBuddy | |
parent | 643e4262e8cdd63b546ea7f9b3c8e85883e0215c (diff) |
Fix units form control name
Diffstat (limited to 'recipeBuddy')
-rw-r--r-- | recipeBuddy/src/app/add-recipe/add-recipe.component.html | 2 | ||||
-rw-r--r-- | recipeBuddy/src/app/add-recipe/add-recipe.component.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipeBuddy/src/app/add-recipe/add-recipe.component.html b/recipeBuddy/src/app/add-recipe/add-recipe.component.html index 76095f9..11277f9 100644 --- a/recipeBuddy/src/app/add-recipe/add-recipe.component.html +++ b/recipeBuddy/src/app/add-recipe/add-recipe.component.html @@ -59,7 +59,7 @@ </mat-form-field> <mat-form-field class="quarter-width"> <input matInput placeholder="Units" type="text" - formControlName="units"> + formControlName="unit"> </mat-form-field> <button matSuffix mat-mini-fab (click)="rmIngredient(i)" type="button" style="margin-left: 10px"> diff --git a/recipeBuddy/src/app/add-recipe/add-recipe.component.ts b/recipeBuddy/src/app/add-recipe/add-recipe.component.ts index 0366950..3c32ae7 100644 --- a/recipeBuddy/src/app/add-recipe/add-recipe.component.ts +++ b/recipeBuddy/src/app/add-recipe/add-recipe.component.ts @@ -29,7 +29,7 @@ export class AddRecipeComponent { this.fb.group({ ingrName: [''], amount: ['', Validators.pattern('^[0-9]*(\.[0-9]*)?$')], - units: [''] + unit: [''] }) ]), steps: this.fb.array([ @@ -61,7 +61,7 @@ export class AddRecipeComponent { this.fb.group({ ingrName: [''], amount: ['', Validators.pattern('^[0-9]*(\.[0-9]*)?$')], - units: [''] + unit: [''] }) ); } |