JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app="myApp">
<div ng-controller="myController">
<span>
Click either button to START.
</span>
<span class="btn-group" data-toggle="buttons-radio">
<button type="button" ng-click="type='Yes'">Juicy</button>
<button type="button" ng-click="type='No'">notJuicy</button>
</span>
<table>
<thead>
<tr>
<th>Count</th>
<th>Fruit</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="fruit in basket" ng-show="fruit.isJuicy == type">
<td>{{$index + 1}}</td>
<td>{{fruit.Name}}</td>
</tr>
</tbody>
</table>
<div>
<i>Note that the count is not sequential. Why is it not sequential??</i>
</div>
</div>
</div>
JavaScript
var myApp = angular.module('myApp', []);
function myController($scope) {
$scope.type = "All";
$scope.basket = [
{Name:"Apple", isJuicy:"Yes"},
{Name:"Pear", isJuicy:"Yes"},
{Name:"Banana", isJuicy:"No"},
{Name:"Avacado", isJuicy:"No"},
{Name:"Pineapple", isJuicy:"Yes"}
];
}