标签:ionic span pre amount false 变化 nts title esc
<ion-view view-title="销售明细查询({{storeSalesCount.COUNT}}单,¥{{storeSalesCount.TOTALAMOUNTSUM}})" class="sellDetail" cache-view="false">
storeSalesCount是由controller来获取,然而storeSalesCount发生变化的时候,storeSalesCount.COUNT以及storeSalesCount.TOTALAMOUNTSUM都无法获取到值,可以用下面的方式来解决:
<ion-view view-title="销售明细查询({{storeSalesCount.COUNT}}单,¥{{storeSalesCount.TOTALAMOUNTSUM}})" class="sellDetail" cache-view="false"> <ion-nav-title> 销售明细查询({{storeSalesCount.COUNT}}单,¥{{storeSalesCount.TOTALAMOUNTSUM}}) </ion-nav-title>
主要就是加上
<ion-nav-title> {{title}} </ion-nav-title>
ionic-view中的view-title无法根据后台传来的值动态改变
标签:ionic span pre amount false 变化 nts title esc
原文地址:http://www.cnblogs.com/xiaolei1004/p/7642364.html