-1
我需要显示的图像,如果条件为真ionic2格式(.html) 上参照角文档我尝试以下操作: 这里是环的参考angular doc 里面的如果我尝试在div标签中打印,则可以使用腿。但是,条件无法访问。如何添加ngIf条件
<div *ngIf="{{leg.legIndex}} == 0" >
<!-- show image middleLeg_1.png if legIndex = 0 -->
<img width="20" height="80" src="img/middleLeg_1.png" />
</div>