Fix item price in wide screens
This commit is contained in:
parent
25c6e81ebc
commit
fb5c76fa03
2 changed files with 3 additions and 2 deletions
|
@ -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(){
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<table cellspacing="0" width="75%">
|
||||
<tr>
|
||||
<td>
|
||||
<app-item-list></app-item-list>
|
||||
<app-item-list [zecPrice]="price"></app-item-list>
|
||||
</td>
|
||||
<td>
|
||||
<app-order></app-order>
|
||||
|
|
Loading…
Reference in a new issue