I have multiple fields in table that I am displaying simply with ng-repeat, but the need to format them occurred, is there some way to pass filter from scope to html? Below code doesn't work:
<tr ng-repeat="info in array">
<td>{{info.key}}</td>
<td class="table-detail-panels">{{ info.value | info.filter }}</td>
</tr>
aslo dont know if I should pass string or filter object
info.filter = 'date' // or
info.filter = $filter('date')
EDIT1: info.filter is a variable, it can have different filters, not only 'date'.
EDIT2: It is possibly worth to mention that ng-repeat is inside directive/controll that im building. And purpose of this controll is to being able to display everything that exist on this world in a sensible way, thats why I need filters. Or easy way of adding them to controll.
ANSWER: After browsing a while I found answer on stack: https://stackoverflow.com/questions/21491747/apply-formatting-filter-dynamically-in-a-ng-repeat