ionic qr code Value

0

How do I get more than one value from the QR Code?

In my html I have:

 <ion-card *ngIf="createdCode">
 <ngx-qrcode [qrc-value]="createdCode"></ngx-qrcode>
 <ion-card-content>
  <p>Valor: {{ createdCode }}</p>
 </ion-card-content>
 </ion-card>

and in my TS:

export class ConteudoprodutoPage {

qrData = null;
createdCode = null;

 constructor(. . .){}

createCode() {
this.createdCode = this.produto.desc_produto;
this.createdCode = this.produto.nom_produto;  
}

With this code I get only 1 value, in case the product is being.nom_product, I would like to receive the description, the name, among other values from the database, but I do not know how to do this and I did not find anything. Can someone help me? Thank you.

    
asked by anonymous 27.11.2018 / 12:30

0 answers