-
-
Notifications
You must be signed in to change notification settings - Fork 240
Closed
Description
When I pass font-awesome unicode dinamically, Nativescript don’t show the icon.
my-section.component.ts file:
public items = [
{
title : "Calendar",
icon: ""
},
{
title : "Map",
icon: "",
}
....
];
my-section.component.html file:
<StackLayout orientation="vertical">
<ListView [items]="items">
<ng-template let-item="item">
<Label [text]="item.icon" class="font-awesome"></Label>
</ng-template>
</ListView>
</StackLayout>
If I try hardcoding the unicode value:
<StackLayout orientation="vertical">
<ListView [items]="sections">
<ng-template let-item="item">
<Label text="" class="font-awesome"></Label>
</ng-template>
</ListView>
</StackLayout>
… the result is correct:
divyachandana and balocodes
Metadata
Metadata
Assignees
Labels
No labels

