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: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [RecipeAddComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(RecipeAddComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/recipe-add/recipe-add.component.ts b/src/app/recipe-add/recipe-add.component.ts new file mode 100644 index 0000000..a68ebba --- /dev/null +++ b/src/app/recipe-add/recipe-add.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-recipe-add', + standalone: true, + imports: [], + templateUrl: './recipe-add.component.html', +}) +export class RecipeAddComponent { + +} diff --git a/src/app/recipes/recipes.component.html b/src/app/recipes/recipes.component.html new file mode 100644 index 0000000..029d6ef --- /dev/null +++ b/src/app/recipes/recipes.component.html @@ -0,0 +1 @@ +

recipes 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; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [RecipesComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(RecipesComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/recipes/recipes.component.ts b/src/app/recipes/recipes.component.ts new file mode 100644 index 0000000..ff4f2ac --- /dev/null +++ b/src/app/recipes/recipes.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-recipes', + standalone: true, + imports: [], + templateUrl: './recipes.component.html', +}) +export class RecipesComponent { + +}