Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html data-ng-app="myApp">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body data-ng-controller="myCtrl">
  <input type="text" data-ng-model="filter.name" data-ng-class="{'red': filteredCustomers.length === 0}" />
<br/>
<ul>
<li data-ng-repeat="cust in customers | filter: filter.name as filteredCustomers">{{cust}}</li>
</ul>
</body>
</html>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers