Html 将图像添加到离子选择选项(离子选择)
如何将图像添加到离子选择中的离子选项? 我想用它来选择带有国家图标的语言Html 将图像添加到离子选择选项(离子选择),html,css,angular,ionic-framework,sass,Html,Css,Angular,Ionic Framework,Sass,如何将图像添加到离子选择中的离子选项? 我想用它来选择带有国家图标的语言 <ion-select interface="popover" [interfaceOptions]="opts" slot="end"> <ion-select-option *ngFor="let item
<ion-select interface="popover" [interfaceOptions]="opts"
slot="end">
<ion-select-option
*ngFor="let item of (langs$ | async)"
[value]="item.name" class="lang-item">
{{item.name}}
</ion-select-option>
</ion-select>
// .ts
opts: any = {
cssClass: 'lang'
};
{{item.name}
//.ts
选项:任意={
cssClass:“朗”
};
这是否回答了您的问题?我看到了,但看起来很糟糕。现在是爱奥尼亚5号。