In the futuristic world of 2075, immortal humans have subjugated mortal humans. There exists a unique store where mortal friends are sold, and efforts are being made to develop an app that allows customers to manage their friends based on their favorite brands. However, there seems to be a glitch with angular.js.
<select ng-model="searchText2.id" ng-options="friend.brand.id as friend.name for friend in friends">
<option value="">Select</option>
</select>
<tr ng-repeat="friend in friends | filter:{brand:searchText2 || undefined}">
While I have successfully implemented filtering, the UX manager threatens to unleash cyber-albino-ligers if the filter does not reset upon selecting an option.
For more details, check out the PLUNKER example here ---> http://plnkr.co/edit/1MPc0BqQGPNIJZ9FRR6z?p=preview