I am filtering a fairly small dataset but there is still some performance issues (UI thread freezing when filter is not concise).
<input type="text" ng-model="vm.user" />
<table class="tbl" ng-show="vm.user.length > 2">
<tbody ng-repeat="p in vm.permissions | filter: {UserName: vm.user}:false">
the issue is only when there are a lot of records, so I've attempted to improve performance by hiding the whole thing when there are less than 3 characters entered in search.
unfortunately, even when the data-set is hidden it appears that angular is manipulating the dom (UI freezing as I type into the filter).
Is there a way to make it not do anything when there are less characters, and/or improve performance in other ways?
ng-ifinstead ofng-showsince it would actually remove the element from the DOM as opposed to just hide it with CSS