Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="myApp">
<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>
</head>
<body ng-controller="mainCtrl">
  <li ng-repeat="item in data | filter:{type:'genius'}:true">
    {{item.name}}
  </li>
  <br>
  <li ng-repeat="item in data | orderBy:'-type.val'">
    {{item.name}}
  </li>
</body>
</html>
 
var myApp = angular.module('myApp', []);
myApp.controller('mainCtrl', ['$scope', function ($scope) {
  $scope.data = [{name:"John",type:{talent:"genius",val:99}},
                 {name:"Paul",type:{talent:"genius",val:79}},
                 {name:"Ringo",type:{talent:"lucky",val:19}}];
}]);
Output

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

Dismiss x
public
Bin info
Tropicalistapro
0viewers