diff options
Diffstat (limited to 'recipeBuddy/src')
-rw-r--r-- | recipeBuddy/src/app/add-recipe/add-recipe.component.html | 3 |
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 }} |