Angular JS filter equals

前端 未结 1 486
野的像风
野的像风 2021-01-02 07:05

Please see the details. Why is the output wrong?

HTML:

相关标签:
1条回答
  • 2021-01-02 07:50

    Remove the quotes from '-1' and send true to the filter to do a strict comparison.

    ng-repeat="t in todos | filter:{ id: -1}:true"

    0 讨论(0)
提交回复
热议问题