How to pass multiple parameter in angular filter function, not custom filter

前端 未结 4 2155
傲寒
傲寒 2021-02-20 14:45

I tried hard and visit lot of similar question like this but still unable to solve this issue.

I want to pass extra parameter in angular filter function. I found solutio

4条回答
  •  [愿得一人]
    2021-02-20 15:01

    According to your case, you can use predicate expression instead of custom filter:

  • {{user.name}}
  • Take a look at this fiddle: http://jsfiddle.net/ovym2tpr/28/

    You can use custom filter in anyway, it just performs not very well especially under nested ng-repeat

提交回复
热议问题