Please see my question here.....
AngularJS DateRange - how to include the end date
How would I go about adding this functionality into an existing ng-repeat area setup? The current filtering is only done via a single text box - search. The date from and date to fields need to be added to the filter.
Really appreciate the help.
NG-REPEAT
<div class="itemlist" data-token="{{data.token}}" ng-repeat="data in filtered = (list | filter:search | orderBy : predicate :reverse) | startFrom:(currentPage-1)*entryLimit | limitTo:entryLimit" data-name="{{data.customerName}}" ng-click="eventHandler(data, $event)">
SEARCH BOX
<input type="text" ng-model="search" ng-change="filter()" class="form-control" placeholder="Search for...">
I've tried altering NG-REPEAT to the following but it doesn't work, the model datef/datet input boxes aren't shown on this example...but they do exist.
<div class="itemlist" data-token="{{data.token}}" ng-repeat="data in filtered = (list | filter:search | myfilter:{from: datef, end: datet} | orderBy : predicate :reverse) | startFrom:(currentPage-1)*entryLimit | limitTo:entryLimit" data-name="{{data.customerName}}" ng-click="eventHandler(data, $event)">