【发布时间】:2017-09-04 17:13:19
【问题描述】:
我正在将我的应用程序从 jquery 移植到 ionic 框架。 在 jquery 中,我正在编写 javascript 代码来手动连接 html 标签。 从 jquery 代码中粘贴相同的一部分
for ( count = start - 1; count < end ; count ++ )
{
if (tranList[count].tranType == "R" )
tranType = "Redeem" ;
else
tranType = "Earn";
text += "<tr> <td>"+ tranType + "</td>" ;
在 Ionic 中,我正在尝试使用 ionic list 编写相同的代码 下面是我的html模板
<ion-list>
<ion-item *ngFor="let tran of transactions">
<p> {{tran.pointsEarned}} </p>
</ion-item>
</ion-list>
在 pointsEarned 旁边,我需要打印积分兑换或赚取类似于 jquery 代码。我如何做到这一点?
【问题讨论】:
标签: angular typescript ionic-framework ionic2 ionic3