How to use 'ActionItem.actionView' in angular+nativescript


#1

I want to use ‘ActionItem.actionView’ inside of ‘ActionBar’ just like the code referred in ActionBar: ActionItems using Icon-Fonts
but nothing could show, event plain text.
I am using angular+nativescript, any help?


#2

Answer myself. Insert Label or StackLayout inside the ActionItem.

    <ActionItem (tap)="onSaveButtonTap()">
        <Label class="action-bar-icon fa " [text]="'fa-save' | fonticon" ></Label>
    </ActionItem>