Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70443

How to create an array from user selected objects in IONIC 3?

$
0
0

@harshm90 wrote:

Hello Guys,

I am trying to differentiate the selected array I get from user but i am unable to separate it . It just come together.

Like i am trying to get it like below image

30%20PM

but this is what i am getting shown in below image

58%20PM

in my ts file


sub_item: any = [{
    subcat_id: "",
    value: "",
    qty: ""
  }];

constructor(...){
..
}

submitbtn(){
this.sub_item.push({
      subcat_id: this.sub_id,
      qty: this.quantity,
      value: this.addonId + "|" + this.addOnPrice + "|" + this.selectedAddOn
    });
}

Please Help how can i achieve this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>