I have a code as follow:
<input type="text" ng-model="filteredText">
<ul>
<li ng-repeat="item in data | filter: {Name : filteredText}">
</li>
</ul>
When Name property is static it's work correctly. Now I need filter dynamic field. For example:
<ul>
<li ng-repeat="item in data | filter: {propertyName: filteredText}">
</li>
</ul>
In this case propertyName is dynamic and come from $scope. But this case filter not working.