有谁知道如何过滤ng-repeat,代码如下。我想用profile.full_name过滤。
<tr ng-repeat="job in customerjobhistoryCtrl.Jobs | filter:{customer.full_name: Profile.full_name} ">
<td>{{job.category_l1}}<br/>{{job.category_l2}}</td>
<td>{{job.customer.full_name}}</td>
<td>{{job.customer.company_name}}</td>
<td>{{job.created_datetime | date:'medium'}}</td>
<td>{{job.scheduled_datetime | date:'medium'}}</td>
答案 0 :(得分:0)
这是按深(内)对象属性过滤的方式:
<tr ng-repeat="job in customerjobhistoryCtrl.Jobs | filter:{customer: {full_name: Profile.full_name}} ">