Created
August 22, 2019 08:54
-
-
Save Hawksbillcat/279ea7dfa385a9202e006e172cd8b3d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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