I use ng-repeat to display each data which i got from the api like this.
<div ng-repeat="festival in festivals | filter:searchText:dateSelect" class="festival-list-box col-xs-12 col-sm-4">
<div class="festival-list">
<div class="image-gallery-box">
<img src="{{ festival.festival_pictures| firstImage }}" alt="">
</div>
<div class="text-box-contain">
<h2>{{ festival.festival_name }}</h2>
<p class="tagline-list">Type   <span class="tag-word">
<strong>Dynamic, Relax</strong></span></p>
<p>Date  
<span class="date-list-color" ng-init="oneDay = 24*60*60*1000; dateCompare = 99">
<strong>
{{ festival.festival_start_date| cmdate:'MM/dd/yyyy' }} - {{festival.festival_end_date| cmdate:'MM/dd/yyyy' }}
</strong>
</span>
</p>
<!-- <input type="hidden" value="6" ng-model="diffdateCal"> -->
<p>Price   <span class="price-list-color"><strong>20,000₩</strong></span></p>
<p>Location <span class="Location-list-color">
<strong>
{{festival.festival_address}}
</strong></span>
</p>
<p><a class="btn btn-info" href="#/festivalDetails/{{festival.id}}" role="button">View details »</a></p>
</div>
</div>
But i need to filter the data by select options input between the gap by festival_end_date and festival_start_date by this input.
<select class="form-control" ng-model="dateSelect">
<option value="0">Any Dates</option>
<option value="6">1 Week</option>
<option value="29">1 Month</option>
</select>
So i need to display only data that have different date between 1 - 6 days , 7 - 29 days and everyday depend on the options that user were selected.
How can i do it?
Thanks!