I have this nested list that I would like to filter based in searchKey Input that contain a array of strings (kendo multiselector). The filter field should be the {{ child.name }} field and the filter result should be applied to the main element on the first ng-repeat item in colection.items
I have no idea how can I filter this array of values against the array of keywords from the kendo input. I try this similar case but with no success. AngularJS filter based on array of strings?. Any help will be appreciated.
<div ng-app="ngApp">
<div ng-controller="ngAppController">
<div id="filtering">
<input id="searchKey" type="text" placeholder="Search keys" ng-model="listSearch" />
</div>
<ul id="allItems" infinite-scroll="colection.nextPage()"
infinite-scroll-distance="0"
infinite-scroll-disabled='colection.busy || colection.finished'>
<li ng-repeat="item in colection.items | filter:listSearch"
ng-show="colection.items.length > 0"
class="block-grid-item">
<a href="javascript: void(0);" data-detail="{{ item.Id }}">
<div class="imageWrap" style="background-image:url({{ item.thumb }});">
<div class="filetypeContainer"><span>{{ item.fileFormatIdentifier }}</span></div>
<ul>
<li ng-repeat="child in item.categories" style="list-style: none; display: inline-block;">
<code style="font-size:11px;">{{ child.name }} </code>
</li>
</ul>
<div class="infoContainer">i</div>
</div>
</a>
</li>
</ul>