Skip to content

Instantly share code, notes, and snippets.

@Hawksbillcat
Created August 22, 2019 08:54
Show Gist options
  • Save Hawksbillcat/279ea7dfa385a9202e006e172cd8b3d9 to your computer and use it in GitHub Desktop.
Save Hawksbillcat/279ea7dfa385a9202e006e172cd8b3d9 to your computer and use it in GitHub Desktop.
/* HTML part
<ion-list *ngFor="let con of option,let i of index;">
<ion-select [(ngModel)]="con.value_id[i]">
<ion-option *ngFor="let c of con.value_id">{{c}}</ion-option>
</ion-select>
</ion-list>
/* json data
this.ooo=["aaa","bbb","ccc","ddd"]
this.option=[
{
"value_id": this.ooo,
"name": "Bangalore Auto",
"quantity": "12",
"price": "100.00",
"salesprice": "50"
},
{
"value_id": this.ooo,
"name": "Hyderabad Auto",
"quantity": "23",
"price": "200.00",
"salesprice": "60"
},
{
"value_id": this.ooo,
"name": "Delhi Auto",
"quantity": "14",
"price": "300.00",
"salesprice": "80"
}
];
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment