Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.js"></script>
<body ng-app="myApp">       
        <div ng-controller="MyCtrl" align="center">  
            <table border="1">
                <tr>
                      <th>Bucket</th>   
                      <th>PRODUCT_CODE</th>              
                      <th>Allocated #</th>                   
                </tr>
                <tr ng-repeat="p in products">
                      <td><span ng-show="products[$index-1].bucket != p.bucket">{{p.bucket}}</span></td>                                     
                      <td><span>{{p.productCode}}</span></td>
                      <td><span>{{p.countOfAllocatedAccount}}</span></td>                     
                </tr>               
            </table>
        </div>      
    </body>
</html>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers