I have a repeater with table row where I have a date, which could be edited. The problem is I can not set the model with string instead of a date object and is not possible to apply a filter on an date input. Which could be the workaround here?
Thanks
<tr data-ng-repeat="item in collection">
<td data-ng-bind="item.name"></td>
<td data-ng-bind="item.sharedDate | date:'MMMM dd, yyyy'"></td>
<td>
<span data-ng-bind="item.note"></span>
<textarea data-ng-model="item.note"></textarea>
</td>
<td>
<span data-ng-bind="item.expiryDate | date:'MMMM dd, yyyy'"></span>
<input type="date" class="form-control" id="expiryDate" data-ng-model="(item.expiryDate | date:'MM/dd/yyyy')">
</td>
Dateobject? e.g.$scope.yourDateThing = new Date(your date val)