0

The code below is OK fast in Crome but extremly slow in IE and Edge. Removing the ng-class improves about 100% in performance but still very slow. It seems to be both the nested loop and the ng-class. What can I do to improve performance here in IE and Edge? In Crome it takes around 3-4 seconds in Edge 40 seconds.

<tr ng-repeat="n in modelTurbineList">
    <td>{{n.TurbineType}}</td>
    <td>{{n.ParkName}}</td>
    <td>{{n.TurbineNumber}}</td>

    <td ng-repeat="x in n.Alarms track by $index" ng-class="{'alert-danger': x == 1, 'alert-success': x == 0, 'alert-warning': x == 2}"
        ng-click="openAlertLevelNav(x,n)">
        <div><a></a></div>
    </td>
</tr>
Vega
  • 27,856
  • 27
  • 95
  • 103
Thomas Segato
  • 4,567
  • 11
  • 55
  • 104

0 Answers0