is there a simple way to apply a filter to a input? i've found some examples, but all sounds like a Macgyver solution for me. My form is defined dynamically, and when the input type is date
, i need to convert date value from 2000-01-01T02:00:00.000Z
to mm/dd/yyyy
.
<form role="form">
<div ng-repeat="fld in grid.columns">
<label>{{fld.label}}</label>
<input type="text" ng-model="grid.currentRecord[fld.name]">
</div>
</form>
I could not use that suggestion in my case: (filters on ng-model in an input)
anybody help me, plese?