Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
  <script>
    
    function sampleController($scope){
     
       $scope.list = [
      {name: "item1", status: "shipped"},
      {name: "item2", status: 'Partially Shipped '}
      ];
      
      $scope.getfilter = function(){
        
        
        
      }
      
    }
    
  </script>
</head>
<body ng-controller="sampleController">
  <div>
    <select ng-model="test" >
      
      <option ng-repeat="item in list">{{item.status}}</option>
      
    </select>
    <ul>
      
      <li ng-repeat="item in list | filter:test">{{item.name}}</li>
      
    </ul>
    <div>{{test}}</div>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers