I have built an angular app which searches through a load of objects.
The problem is that the search filters match any part of the string returning irrelevant searches. for example. If I search the name Steve the results will bring up both steve , eve and steven. I want the search results to return steve and steven. Plunkr: https://plnkr.co/edit/awN5ZxIpZ3fJJUkD5k6Y Code
<input id="search-input" ng-model="searchTerm" placeholder="Search">
</div>
<ul class="search-ul">
<li class="search-list" ng-if="searchTerm.length > 2" ng-repeat="item in SearchItems| filter:searchTerm">
<div class="button-wrap">
<a href="" ng-click="openLinkSearch(item.url)"><img class="icon" src="{{item.image}}" /></a>
</div>
<span class="text">{{item.name}}</span>
</li>
</ul>