AngularJS,从升级到1.1.5之后1.2.2,过滤器问题升级到、过滤器、问题、AngularJS

2023-09-13 03:41:28 作者:〖萍踪メ侠影〗

就在最近,从纳克1.1.5 1.2.2升级我的应用程序。该零件的结构问题是,

Just recently upgraded my app from ng 1.1.5 to 1.2.2 . The structure for the part with the issue is,

排序表格中添加权限。这种形式也用于过滤以下列表。的NG-重复列表列出的权限定义。

它用来描述工作,但经过1.2.2改变其行为,目前上市来空,之后我改变选择选项,然后根据选定的项目,在过滤器踢和只显示过滤的行。

It used to work as described, but changed its behaviour after 1.2.2, now the listing comes empty, after i change the select options then based on the selected items, filter kicks in and shows only the filtered rows.

所以,只是无法找到一种方法来实现我最初的设计1.2.2。

So, just couldn't find a way to implement my original design with 1.2.2.

下面是对两个工作和非工作版本的小提琴,在这两个版本的code是相同的,唯一的区别是AngularJS库版本

Here are the fiddles for both working and non-working versions, the code in both versions is identical, the only difference is version of the AngularJS library:

1.1.5(工作): http://jsfiddle.net/yasarbayar/5zkH4/

1.1.5 (working): http://jsfiddle.net/yasarbayar/5zkH4/

1.2.2(非工作): http://jsfiddle.net/yasarbayar/h4vYL/

1.2.2 (not-working): http://jsfiddle.net/yasarbayar/h4vYL/

我必须把一些code代表的jsfiddle环节得到踢,所以从该的jsfiddle code的部分是:

I have to put some code for jsfiddle links to get kicked in, so a portion of the code from jsfiddle is:

$scope.model = {
    level_id: null,
    type: null,
    topic_id: null,
    access: null,
    create: null,
    read: null,
    update: null,
    delete: null
};

$scope.access = {...};

任何帮助是AP preciated。谢谢,

Any help is appreciated. Thanks,

推荐答案

我创建了一个错误在angularjs github上报告和好像filterFilter功能改变。因此,

I created a bug report on angularjs github, and seems like the filterFilter function is changed. So,

如果你想匹配任何那么你现在需要的筛选器属性设置为undefined。

if you want to match anything then you now need to set the filter property to undefined.