如何使用 ng-repeat-start 和 ng-repeat-end 从末尾删除附加图像?

How to remove additional image from the end with ng-repeat-start and ng-repeat-end?

我用 ng repeat 显示数据并用 1 image.Now 分隔每个数据 data rendering and image displaying.

我有不同的部分(即 td)

现在的问题是我的图片显示在最后,这是我不想要的。

当前行为:

代码:

<table border="0" cellpadding="0" cellspacing="0" align="left">
           <tr>
              <td align="center" ng-repeat-start="item in data">
                           <div>{{ item.Name }}</div>
               </td>
                <td align="center" valign="middle" ng-repeat-end>
                          <img src="~/images/LineSeperator.png">
                 </td>
           </tr>
</table>

如何做到这一点??

我认为这可能有帮助

<style>
  table td:last-child {
    display:none;
  }
</style>

您可以使用 $last:

ng-if="!$last"