ng-repeat :filter by single field

后端 未结 12 2423
栀梦
栀梦 2020-11-22 10:06

I have an array of products that I\'m repeating over using ng-repeat and am using

<
12条回答
  •  清歌不尽
    2020-11-22 11:00

    my way is this

    subjcts is
    
    [{"id":"1","title":"GFATM"},{"id":"2","title":"Court Case"},{"id":"3","title":"Renewal\/Validity"},{"id":"4","title":"Change of Details"},{"id":"5","title":"Student Query"},{"id":"6","title":"Complains"}]
    

    sub is a Input field or whatever you like

    Displaying like this

    {{x.title}}

提交回复
热议问题