AngularJS Filter Exact Match

前端 未结 3 1094
臣服心动
臣服心动 2020-12-02 21:58

I need to filter a list of items by their category. I want the user to be able to click a button, and then have the filter applied to a list.

At the moment, I have t

3条回答
  •  日久生厌
    2020-12-02 22:32

    This is now provided natively within the filter. You can just pass true to the filter to enable strict matching.

  • {{ movie.title }}
  • Refereces

    https://docs.angularjs.org/api/ng/filter/filter

    https://stackoverflow.com/a/18243147/1466430

提交回复
热议问题