AngularJS,在面搜索过滤器是很慢 [英] AngularJS, filter on faceted search is very slowly
本文介绍了AngularJS,在面搜索过滤器是很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用这面搜索 https://plnkr.co/edit/wNbRidDCLmwIBWUOz5bz 到我的项目,但430项,过滤器柜台很慢...我有输入延迟,当我使用搜索框。
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.
在HTML:
({{ (filteredItems | filter:query | filter:count(group.name, facet)).length }})
在控制器:
$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屋!
查看全文