Encountering a perplexing issue at the moment. I have created buttons using ng-repeat and my intention is for them to filter my list when clicked on. However, I am facing an issue where the list fails to filter upon clicking. Here are the buttons:
<div ng-repeat="i in links">
<a href="" ng-click=" search = i.title " > {{i.title }} </a>
</div>
<div ng-repeat="i in links | filter: search">
<p>{{i.names}}</p>
</div>
Strangely enough, when I try something like this, the list filters properly:
<a ng-click="search = 'music' ">Click</a>