如何根据我的结果计算

时间:2018-07-15 22:11:23

标签: angularjs angularjs-ng-repeat

如何使用下面的逻辑来计算当前记录中有多少时间衰减,趋势和无误,但显示出错误的结果

  <td  ng-if="row.issue_type =='None'" ng-repeat="row in item.outdoor_tracking">{{$index }}</td>  
  <td  ng-if="row.issue_type =='Fade'" ng-repeat="row in item.outdoor_tracking">{{$index }}</td>   
  <td  ng-if="row.issue_type =='Trend'"ng-repeat="row in item.outdoor_tracking">{{$index }}</td> 

enter image description here

1 个答案:

答案 0 :(得分:0)

根据我对您的评论的理解,我认为这会为您解决

<tr ng-repeat="row in item.outdoor_tracking">
    <td ng-if="row.issue_type =='None'">{{$index }}</td>
    <td ng-if="row.issue_type =='Fade'">{{$index }}</td>
    <td ng-if="row.issue_type =='Trend'">{{$index }}</td>
</tr>

快乐编码:)