From d8e99623986708c7b64984f8bf638a9fbec4a3d2 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Tue, 10 Dec 2019 12:27:46 -0500 Subject: Add edit-recipe form/page Mostly copied from add recipe page. Updates recipe successfully, but doesn't pull ingredients/steps into form, and doesn't use pass service to get recipe. --- recipeBuddy/src/app/app-routing.module.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recipeBuddy/src/app/app-routing.module.ts') diff --git a/recipeBuddy/src/app/app-routing.module.ts b/recipeBuddy/src/app/app-routing.module.ts index bb7c96e..9620f04 100644 --- a/recipeBuddy/src/app/app-routing.module.ts +++ b/recipeBuddy/src/app/app-routing.module.ts @@ -3,11 +3,13 @@ import { RouterModule, Routes } from '@angular/router'; import { CookPageComponent } from './cook-page/cook-page.component'; import { AddRecipeComponent } from './add-recipe/add-recipe.component'; +import { EditRecipeComponent } from './edit-recipe/edit-recipe.component'; const routes: Routes = [ { path: '', redirectTo: '/cook', pathMatch: 'full' }, { path: 'cook', component: CookPageComponent }, - { path: 'add', component: AddRecipeComponent } + { path: 'add', component: AddRecipeComponent }, + { path: 'edit', component: EditRecipeComponent }, ]; @NgModule({ -- cgit v1.1