javascript - How to remove additional image from the end with ng-repeat-start and ng-repeat-end? -
i displaying data ng repeat , seperating each data 1 image.now have different sections(i.e td) data rendering , image displaying
.
now problem image displaying @ last dont want.
code:
<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>
how this??
you use $last
:
ng-if="!$last"
Comments
Post a Comment