diff --git a/src/app/items/item-list/item-list.component.ts b/src/app/items/item-list/item-list.component.ts index eacee04..f8904ec 100644 --- a/src/app/items/item-list/item-list.component.ts +++ b/src/app/items/item-list/item-list.component.ts @@ -23,7 +23,7 @@ import { ItemAddComponent } from '../item-add/item-add.component'; export class ItemListComponent implements OnInit{ - @Input() zecPrice: number = 1; + @Input() zecPrice: number; public items: Item[] = []; @@ -75,6 +75,7 @@ export class ItemListComponent implements OnInit{ this.items = items; }); }); + this.zecPrice = 1; } ngOnInit(){ diff --git a/src/app/viewer/viewer.component.html b/src/app/viewer/viewer.component.html index 7410e98..2c79259 100644 --- a/src/app/viewer/viewer.component.html +++ b/src/app/viewer/viewer.component.html @@ -34,7 +34,7 @@
- +