so have table has around 800 rows, each 2 cells. issue i'm running takes waaaaay long filter through. wondering if had suggestions improving filtering time.
here code:
<input type="text" class="search" placeholder="type search..." ng-model="search"> <tr ng-repeat="item in items|filter:search track $index" ng-click="clicklist($index)" class="tablerow"> <td class="english" style="width: 50%"> <p class="term">{{item.english}}</p> </td> <td class="spanish" style="width: 50%"> <p class="term">{{item.spanish}}</p> </td> </tr> edit:
my items this:
var legalobject = [{ english: 'accord , satisfaction', spanish: 'acuerdo transaccional' }, { english: 'acknowledged same free act , deed', spanish: 'reconoció el mismo como su escritura otorgada libremente' }, { english: 'adjudication', spanish: 'juicio en el tribunal de menores' }, { english: 'adverse witness', spanish: 'testigo desfavorable' }, { english: 'advice of rights', spanish: 'lectura de derechos' }];
Comments
Post a Comment