ion-select-选项在离子45中?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ion-select-选项在离子45中?相关的知识,希望对你有一定的参考价值。
我想把以下JSON绑定到离子选择中。谁能帮我完成这个任务。JSON看起来还可以吗?
"1": "Lynko Pvt. Ltd. ",
"4": "Letsclick Pvt. Ltd. ",
"5": "Wirehead ",
"6": "Codeyiizen Software & Services Pvt. Ltd. ",
"7": "Mariao Barando ",
"8": "Jorge Santacruz ",
"9": "Matt Core ",
"10": "Manny Singh ",
"11": "Manoj Mishra ",
"12": "Digi Interacts ",
"13": "IHF Ltd. ",
"14": "Hadiur Rahman ",
"15": "The Football Link ",
"16": "BSPL ",
"17": "Votestalk ",
"18": "Codeyiizen "
答案
你可以绑定离子选择选项如下.你的JSON看起来不正确。我将给出一个参考代码
<ion-item>
<ion-label data-target="#filter3">Travel Agencies</ion-label>
<ion-select id="filter3" multiple="true">
<ion-option id="filter3" *ngFor="let travels of filter_type.travels " value="travels.id">
travels.name</ion-option>
</ion-select>
</ion-item>
以上是关于ion-select-选项在离子45中?的主要内容,如果未能解决你的问题,请参考以下文章