AngularJS,多面搜索非常缓慢 [英] AngularJS, faceted search is very slowly
本文介绍了AngularJS,多面搜索非常缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用这个分面搜索 https://plnkr.co/edit/wNbRidDCLmwIBWUOz5bz 进入我的项目,但与430项目,筛选计数器是非常慢...我有输入滞后,当我使用搜索框。
在HTML中:
({{(filteredItems | filter:查询|过滤器:count(group.name,facet))。length}})
$ $ p $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $返回el [prop] ==值;
};
};
您有其他的选择吗?
解决方案
没有人?
我不能改变界面,我不明白如何解决这个问题。
I use this faceted search https://plnkr.co/edit/wNbRidDCLmwIBWUOz5bz into my project but with 430 items, filter counter is very slow... I have input lag when I use searchbox.
In HTML :
({{ (filteredItems | filter:query | filter:count(group.name, facet)).length }})
In controller :
$scope.count = function (prop, value) {
return function (el) {
return el[prop] == value;
};
};
Do you have an alternative?
解决方案
No one? I can't change the interface and I don't see how to approach the problem differently.
这篇关于AngularJS,多面搜索非常缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文