*ngIf在ios nativescript中不工作

*ngIf在ios nativescript中不工作,nativescript,angular2-nativescript,nativescript-telerik-ui,nativescript-angular,nativescript-cli,Nativescript,Angular2 Nativescript,Nativescript Telerik Ui,Nativescript Angular,Nativescript Cli,在页脚中基于*ngif条件im更改页脚图标。。。它在安卓系统中工作得很好,但在ios系统中却不行 <Button class="footer-class" textWrap="true" (tap)="onNavItemTap('/profile')" *ngIf="isLoggedIn"> <FormattedString> <Span fontFamily="FontAwesome" [text]="profile" class="icon-style f

页脚中基于*ngif条件im更改页脚图标。。。它在安卓系统中工作得很好,但在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>


你能分享你的代码吗?我已经添加了问题代码。你是否使用tabview?如果你使用tabview,请注意这个类似的问题不使用tabview,只使用StackLayouts和GridLayouts