parent
b7f6487ad3
commit
4c9548f9af
@ -1 +1,3 @@
|
||||
Tiramisu
|
||||
|
||||
<router-outlet></router-outlet>
|
@ -1,3 +1,6 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import {RecipeComponent} from './recipe/recipe.component'
|
||||
|
||||
export const routes: Routes = [];
|
||||
export const routes: Routes = [
|
||||
{ path: 'recipe/:id', component: RecipeComponent}
|
||||
];
|
||||
|
@ -0,0 +1 @@
|
||||
<p>recipe works!</p>
|
@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { RecipeComponent } from './recipe.component';
|
||||
|
||||
describe('RecipeComponent', () => {
|
||||
let component: RecipeComponent;
|
||||
let fixture: ComponentFixture<RecipeComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [RecipeComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(RecipeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
@ -0,0 +1,17 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-recipe',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
templateUrl: './recipe.component.html',
|
||||
})
|
||||
export class RecipeComponent {
|
||||
|
||||
@Input()
|
||||
set id(id: string) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in new issue