Answer the question
In order to leave comments, you need to log in
Is it possible to search only one property in filter:q as results?
Good afternoon!
I do list filtering like here https://docs.angularjs.org/api/ng/directive/ngRepeat
Is it possible to search not by all object properties, but only by one? Now I'm doing filter:q as results, but then even the id of the object actually gets into the search.
Answer the question
In order to leave comments, you need to log in
As a result, it turned out like this:
<input type="text" ng-model="search.title">
<div ng-repeat="product in products | filter:search">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question