angularjs filter (not working)

前端 未结 7 1367
灰色年华
灰色年华 2020-12-25 14:56

The following HTML, Javascript and JSON render correctly, but the filter does not work at all. What are we doing wrong?



        
7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 15:50

    You can use the toArrayFilter that converts the object to an array so it can be used by regular filters.

    In your case it would be as:

    {{ catalog.$key }} - {{ catalog.someProp }}

提交回复
热议问题