Reputation: 7330
I've a nested repeat list as follows and I'm wondering how to apply 06-27-15 (mm-dd-yy) date format to values.
<select ng-model="data.dayId" ng-value="day.id" ng-options="day.id as day.date group by day.name for day in days" required>
</select>
Upvotes: 0
Views: 1042
Reputation: 2156
<select ng-model="data.dayId" ng-value="day.id" ng-options="day.id as (day.date |date:'mm-dd-yy')group by day.name for day in days" required>
</select>
Upvotes: 1
Reputation: 5825
Try something like this:
ng-options="day.id as (day.date | date:'mm-dd-yy') group by day.name for day in days"
Upvotes: 1