summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/add-recipe
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-12-06 15:14:17 -0500
committerTucker Evans <tuckerevans24@gmail.com>2019-12-08 15:03:07 -0500
commitefc880aa101b046e77ff9feb5045225cd44afbf8 (patch)
treeb3e63b6a2120d9834513870c4165e4256623677b /recipeBuddy/src/app/add-recipe
parent1431653196467eec7608cb30592d462b4c207be4 (diff)
Add submit button to form
Diffstat (limited to 'recipeBuddy/src/app/add-recipe')
-rw-r--r--recipeBuddy/src/app/add-recipe/add-recipe.component.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipeBuddy/src/app/add-recipe/add-recipe.component.html b/recipeBuddy/src/app/add-recipe/add-recipe.component.html
index b4f70ce..7569560 100644
--- a/recipeBuddy/src/app/add-recipe/add-recipe.component.html
+++ b/recipeBuddy/src/app/add-recipe/add-recipe.component.html
@@ -1,4 +1,4 @@
-<form [formGroup]="recipeForm" class="form">
+<form [formGroup]="recipeForm" class="form" (ngSubmit)="onSubmit()">
<h2>Add Recipe</h2>
<mat-form-field class="full-width">
<input matInput placeholder="Name" type="text" formControlName="recipeName">
@@ -63,6 +63,7 @@
</div>
</div>
</div>
+ <button mat-button color="primary" type="submit">Submit</button>
</form>
<p>
Value: {{ recipeForm.value | json }}