I have one angular table.
<tr ng-repeat="data in userList">
  <td>{{$index+1}}</td>
  <td>{{data.name }}</td>
  <td>{{data.age}}</td>
  <td>{{data.dept}}</td>
  <td>{{data.appDate }}</td>
  <td>{{data.joinedDate}}</td>
</tr>Here when joinedDate>appDate ,for that particular row I need to add background color with dottedlines.
I did this
<tr ng-repeat="data in userList" ng-if="data.appDate>=delivery.joinedDate" ng-style="{'background-color': '#ffd6d6','border':'dashed 3px #9e0b0f'}">
  <td>{{$index+1}}</td>
  <td>{{data.name }}</td>
  <td>{{data.age}}</td>
  <td>{{data.dept}}</td>
  <td>{{data.appDate }}</td>
  <td>{{data.joinedDate}}</td>
</tr>
<tr ng-repeat="data in userList">
  <td>{{$index+1}}</td>
  <td>{{data.name }}</td>
  <td>{{data.age}}</td>
  <td>{{data.dept}}</td>
  <td>{{data.appDate }}</td>
  <td>{{data.joinedDate}}</td>
</tr>But rows are displaying two times.What is the mistake?Any suggestion?
 
    