parent
4c9548f9af
commit
84649ceda1
@ -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}
|
||||
];
|
||||
|
@ -0,0 +1 @@
|
||||
<p>recipe-add works!</p>
|
@ -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<RecipeAddComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [RecipeAddComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(RecipeAddComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
@ -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 {
|
||||
|
||||
}
|
@ -0,0 +1 @@
|
||||
<p>recipes works!</p>
|
@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { RecipesComponent } from './recipes.component';
|
||||
|
||||
describe('RecipesComponent', () => {
|
||||
let component: RecipesComponent;
|
||||
let fixture: ComponentFixture<RecipesComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [RecipesComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(RecipesComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
@ -0,0 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-recipes',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './recipes.component.html',
|
||||
})
|
||||
export class RecipesComponent {
|
||||
|
||||
}
|
Loading…
Reference in new issue