diff options
Diffstat (limited to 'recipeBuddy/src/app/app-routing.module.ts')
-rw-r--r-- | recipeBuddy/src/app/app-routing.module.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/recipeBuddy/src/app/app-routing.module.ts b/recipeBuddy/src/app/app-routing.module.ts index ae67546..c2d381d 100644 --- a/recipeBuddy/src/app/app-routing.module.ts +++ b/recipeBuddy/src/app/app-routing.module.ts @@ -6,14 +6,16 @@ import { PreCookPopUpComponent } from './pre-cook-pop-up/pre-cook-pop-up.compone import { AddRecipeComponent } from './add-recipe/add-recipe.component'; import { EditRecipeComponent } from './edit-recipe/edit-recipe.component'; import { ShoppingCartComponent } from './shopping-cart/shopping-cart.component'; +import { RecipeCardComponent } from './recipe-card/recipe-card.component'; const routes: Routes = [ - { path: '', redirectTo: '/cook', pathMatch: 'full' }, + { path: '', redirectTo: '/main', pathMatch: 'full' }, + { path: 'main', component: RecipeCardComponent }, { path: 'preCook' , component: PreCookPopUpComponent }, { path: 'add', component: AddRecipeComponent }, { path: 'cook', component: CookPageComponent }, { path: 'edit', component: EditRecipeComponent }, - { path: 'cart', component: ShoppingCartComponent } + { path: 'cart', component: ShoppingCartComponent }, ]; @NgModule({ |