added track by to ng-repeat to improve speed

This commit is contained in:
cubedro 2015-05-27 00:39:38 +03:00
parent dc8d87f267
commit c5ac85f106
2 changed files with 2 additions and 2 deletions

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

View File

@ -183,7 +183,7 @@ block content
th
i.icon-bulb(data-toggle="tooltip", data-placement="top", title="Up-time", ng-click="orderTable(['-stats.uptime'], false)")
tbody(ng-cloak)
tr(ng-repeat='node in nodes | orderBy:predicate', class="{{ node.stats | mainClass : bestBlock }}")
tr(ng-repeat='node in nodes | orderBy:predicate track by node.id', class="{{ node.stats | mainClass : bestBlock }}")
td.td-nodecheck
i(ng-click="node.pinned = !node.pinned", class="{{ node.pinned | nodePinClass }}", data-toggle="tooltip", data-placement="right", data-original-title="Click to {{ node.pinned ? 'un' : '' }}pin")
td.nodeInfo(rel="{{node.id}}")