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
but this is what i am getting shown in below image
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?