I want to apply this directive inside td cells, there are 6 columns and i want to apply only at the columns 1,2,3 and 5.
Is there a cleaner way to apply instead of applying raw html tags to these four cells ?
<span ng-if="item.index === 2
|| item.index === 7
|| item.index === 10
|| item.index === 11">$ </span>
I end with a huge list of html code :
<td><span ng-if="item.index === 2 || item.index === 7 || item.index === 10 || item.index === 11">$ </span> {{item.label2 | number}}</td> <td><span ng-if="item.index === 2 || item.index === 7 || item.index === 10 || item.index === 11">$ </span> {{item.label3 | number}}</td> <td><span ng-if="item.index === 2 || item.index === 7 ......