add selectable topping defaultId

This commit is contained in:
pakintada@gmail.com 2024-01-05 15:09:52 +07:00
parent 3b4dec5e61
commit f9d833e3b7
3 changed files with 156 additions and 84 deletions

View file

@ -159,6 +159,9 @@ export class RecipeDetailsComponent implements OnInit {
recipes: [
...(this.repl.length <= 0 ? [] : this.repl)
],
ToppingSet: [
...(this.tpl.length <= 0 ? [] : this.tpl)
]
}
@ -221,7 +224,7 @@ export class RecipeDetailsComponent implements OnInit {
}
onToppingListChange(tpl: unknown[]) {
// console.log('Topping List Form Changed', tpl);
console.log('Topping List Form Changed', tpl);
this.tpl = tpl as never[];
this.isValueChanged ||= tpl != undefined;