diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 8e0d549..6632ce5 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,6 +1,10 @@ import { Routes } from '@angular/router'; +import {RecipesComponent} from './recipes/recipes.component' import {RecipeComponent} from './recipe/recipe.component' +import {RecipeAddComponent} from './recipe-add/recipe-add.component' export const routes: Routes = [ + { path: 'recipes', component: RecipesComponent}, + { path: 'recipe/add', component: RecipeAddComponent}, { path: 'recipe/:id', component: RecipeComponent} ]; diff --git a/src/app/recipe-add/recipe-add.component.html b/src/app/recipe-add/recipe-add.component.html new file mode 100644 index 0000000..c7e1b36 --- /dev/null +++ b/src/app/recipe-add/recipe-add.component.html @@ -0,0 +1 @@ +
recipe-add works!
diff --git a/src/app/recipe-add/recipe-add.component.spec.ts b/src/app/recipe-add/recipe-add.component.spec.ts new file mode 100644 index 0000000..fdc48f0 --- /dev/null +++ b/src/app/recipe-add/recipe-add.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { RecipeAddComponent } from './recipe-add.component'; + +describe('RecipeAddComponent', () => { + let component: RecipeAddComponent; + let fixture: ComponentFixturerecipes works!
diff --git a/src/app/recipes/recipes.component.spec.ts b/src/app/recipes/recipes.component.spec.ts new file mode 100644 index 0000000..1d081f6 --- /dev/null +++ b/src/app/recipes/recipes.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { RecipesComponent } from './recipes.component'; + +describe('RecipesComponent', () => { + let component: RecipesComponent; + let fixture: ComponentFixture