Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<div class="title-bar" ng-repeat="orderType in someObj.orderTypes">
  <div class="inner-panel" ng-repeat="status in orderType.statuses">
            <p>{{status.Name}}</p>
            <div class="order-list" ng-repeat="order in status.Orders | limitTo:orderFilterLimit">
                <p>{{order.Stuff}}</p>
            </div>
            <button ng-show="(status.Orders.length > orderFilterLimit)" ng-click="loadMoreOrdersToList()">Load More</button>
        </div>
    </div>
</body>
</html>
 
var app = angular.module('app', []);
app.controller('MainCtrl', function ($scope) {
  
  // lots of other code calling web services and getting data...
  
  $scope.orderFilterLimit = 3;
  
  $scope.loadMoreOrdersToList = function() {
    $scope.orderFilterLimit += 3;
  };
  
});
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers