1
しばらくの間、ons-iconとangular2の使用に問題がありました。アイコンを動的にロードするons-iconを取得する方法は?
<span *ngFor="let theIcon of item.getItem().style.get('icon')">
<ons-icon [icon]="theIcon"></ons-icon> {{theIcon}}
</span>
{{theIcon}}は適切なアイコンのテキスト(MD-刃物)を表示しているが、ONSアイコンは、アイコンを示すことはありません。コントロールにテキストをコピーしてicon = "md-cutlery"に変更した場合、それは正常に表示されます。
私には何が欠けていますか?