Closed
Description
If you have an ActionBar
with optional ActionItems
, the items switches place when the *ngIf
state changes.
You can see what I mean in this gif:
There are two ActionItem
, one with the title=1 and one with the title=2.
- tap hides
ActionItem 1
. - tap shows
ActionItem 1
again, but now on the right side ofActionItem 2
- tap hides
ActionItem 2
- tap shows
ActionItem 2
again, now in the proper order - tap hides both
- tap shows both in the proper order.
I would expect the items to be shown in the order they're in the template:
<ActionBar>
<ActionItem text="1" *ngIf="show1"></ActionItem>
<ActionItem text="2" *ngIf="show2"></ActionItem>
</ActionBar>
I have a demo project here:
https://github.com/m-abs/tns-webpack-ng2.3/tree/action-ngIf-order