I currently have a functioning search filter in place that utilizes a search input element:
<input placeholder="Search" type="text" ng-model="search.$"/>
Moreover, I have:
<tr ng-repeat="person in people | filter:search:strict">
<td>{{ person.name }}</td>
<!-- etc --!>
Although this setup is working as intended, I am interested in incorporating buttons that can filter all individuals based on a specific attribute value without the need for manual input, while still maintaining the functionality of the search filter. The details of the controller and scope are as follows:
var FilteringApp = angular.module('FilteringApp',[]);
FilteringApp.controller('FilteringCtrl', ['$scope', '$http', '$timeout', function($scope, $http, $timeout) {
$scope.people = [{"name":"Billy","job":"CEO","stress":"high"},
{"name":"Mandy","job":"CTO","stress":"high"},
{"name":"Susan","job":"CFO","stress":"high"},
{"name":"Michael","job":"CMO","stress":"low"}];
}]);