过滤器无法使用ng-repeat angularjs

时间:2016-12-05 09:54:03

标签: angularjs angularjs-directive angularjs-scope

有谁知道如何过滤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>

1 个答案:

答案 0 :(得分:0)

这是按深(内)对象属性过滤的方式:

<tr ng-repeat="job in customerjobhistoryCtrl.Jobs | filter:{customer: {full_name: Profile.full_name}}  ">