【发布时间】:2018-03-28 14:38:16
【问题描述】:
我在我的应用程序中使用this 管道示例,它适用于简单对象,但不适用于嵌套对象,例如,让我们以链接中的示例为例,将 auther 更改为对象而不是字符串,现在作者将从此转变:
"author": "George R. R. Martin",
对此:
"author": {
"name": "George R. R. Martin",
"age": 25
}
我还更改了过滤器值以适应更改:
[(ngModel)]="filter.author.name"
但是在这些更改之后,搜索器不再为作者输入工作。
我错过了什么吗?
【问题讨论】:
标签: angular nested pipes-filters