Looking for a solution regarding my use of ng-repeat
:
HTML:
<td class="border" data-ng-repeat="price in goHead.prices track by $index">
In the context of my <td>
, I want to apply the class border
if data-ng-if="price.isMinPrice"
is true, otherwise, I want to apply the class noBorder
if ! price.isMinPrice
is true.
Is there a way to achieve this functionality using AngularJS?