esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

Nested property filters on lists/arrays? #822

Open nastia2325 opened 8 years ago

nastia2325 commented 8 years ago

Is it possible to use nested property filters on a list / array?

For example I want to filter for a hobby of a person: {Name, Country, [pcgames, sports, cinema, etc.]}

I tried it with

<td data-title-text="Hobby" data-title="'Hobby'" filter="{'hobbyList.hobby': 'text'}">
 <ul>
<li ng-repeat="hobby in person.hobbyList">{{hobby}}</li>
</ul>
</td>

but it does not work :-/

TioNoob commented 8 years ago

Maybe this can help you.

http://stackoverflow.com/questions/28392651/angular-js-filtering-nested-array-in-controller/34775082#34775082

I don't know if the problem has been fixed.

debarshi-245 commented 8 years ago

I've similar requirement to use nested property filters on a list. Hope this issue is fixed.