Well, I'm developing an app with ionic 3
. I am facing problems, as I need to show the product and its value in the same column:
Product - 350 (value)
But, it is storing in position 1, the product, and in position 2 its value.
Follow the code TS
:
for (let i = 0; i <= this.vetValores.length; i++) {
if (this.vetValores.indexOf(element, this.valTot)) {
this.vetValores.push(element, this.valTot);
this.vetValores[i + 1];
break;
}
Code HTML
:
<ion-list>
<ion-item *ngFor="let prod of vetValores">
<ion-row>
{{prod}} {{prod.valTot}}
</ion-row>
</ion-item>
</ion-list>