<!doctype html>
<html ng-app="ui.bootstrap.demo">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-animate.js"></script>
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-1.3.3.js"></script>
<script src="script.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div ng-controller="CollapseDemoCtrl">
<input type="checkbox" id="zerofailures" ng-model="showNoFailures">
<label for="zerofailures">Show Features with No Failures</label>
<table>
<tr ng-repeat="f in feature |filter: (showNoFailures?failureFilter:'')">
<td colspan="2">Pass: {{f.passed}} </td>
<td colspan="2">Fail: {{f.failed}}</td>
</tr>
</table>
</div>
</body>
</html>
angular.module('ui.bootstrap.demo', ['ngAnimate', 'ui.bootstrap']);
angular.module('ui.bootstrap.demo').controller('CollapseDemoCtrl', function ($scope) {
$scope.feature = [{
passed: 5,
failed: 5
}, {
passed: 12,
failed: 0
}, {
passed: 15,
failed: 0
}];
$scope.failureFilter = function(item) {
return item.failed === 0;
};
});
/* Styles go here */