Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>AngularJS Tree Demo</title>
  
  <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.19/angular.js"></script>
  
</head>
<body ng-app ng-controller="SampleController">
  <script type="text/ng-template" id="treeLevel.html">
    <ul>
      <li ng-repeat="item in items">
        
        <input type="checkbox"
          name="itemSelection"
          ng-model="item._Selected" />
        
        {{item.text}}
      
        <div ng-include=" 'treeLevel.html'"
            onload="items = item.children">
        </div>
      
      </li>
    </ul>
  </script>
  
  <div ng-include=" 'treeLevel.html' "
       onload="items = sourceItems">
  </div>
  
  <pre> {{sourceItems | json}}
  </pre> 
  
</body>
</html>
Output

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

Dismiss x
public
Bin info
Meligypro
0viewers