* ng如果无法在iOS nativescript-angular中使用

时间:2018-06-30 05:26:17

标签: nativescript angular2-nativescript nativescript-telerik-ui nativescript-angular nativescript-cli

footer 中根据 * ngif 条件

更改页脚图标 ......在 android 中完美运行但不是 ios

<Button class="footer-class" textWrap="true" (tap)="onNavItemTap('/profile')" *ngIf="isLoggedIn">
<FormattedString>
   <Span fontFamily="FontAwesome" [text]="profile" class="icon-style fa"></Span>
   <Span text="&#x000a;profile" class="footer-title"></Span>
</FormattedString>
</Button>
<Button class="footer-class" textWrap="true" (tap)="onNavItemTap('/contactus')">
   <FormattedString>
      <Span fontFamily="FontAwesome" [text]="contactus" class="icon-style fa"></Span>
      <Span text="&#x000a;contactus" class="footer-title"></Span>
   </FormattedString>
</Button>

.. enter image description here

enter image description here

0 个答案:

没有答案