<!DOCTYPE html>
<html ng-app="example">
<head lang="en">
    <meta charset="UTF-8">
    <title>Example - Dynamic Table</title>

    <link rel="stylesheet" type="text/css" href="style/jquery.treetable.css" />
    <link rel="stylesheet" type="text/css" href="style/jquery.treetable.theme.default.css" />

    <script src="lib/jquery.min.js"></script>
    <script src="lib/jquery.treetable.js"></script>
    <script src="lib/angular.min.js"></script>

    <script src="../src/angular-treetable.js"></script>

    <script src="js/example_dynamic.js"></script>

</head>
<body ng-controller="ExampleCtrl">

    <h3>Dynamic File Browser</h3>

    <script type="text/ng-template" id="tree_node">
        <tr tt-node is-branch="node.type == 'folder'">
            <td><span ng-bind="node.name"></span></td>
            <td ng-bind="node.type"></td>
            <td ng-bind="node.size"></td>
        </tr>
    </script>

    <table id="table" tt-table nodes="get_nodes" template="'tree_node'">
        <thead>
            <tr>
                <th>Filename</th>
                <th>Type</th>
                <th>Size</th>
            </tr>
        </thead>
        <tbody></tbody>
    </table>

</body>
</html>
<!DOCTYPE html>
<html ng-app="example">
<head lang="en">
    <meta charset="UTF-8">
    <title>Example - Dynamic Table</title>

    <link rel="stylesheet" type="text/css" href="style/jquery.treetable.css" />
    <link rel="stylesheet" type="text/css" href="style/jquery.treetable.theme.default.css" />

    <script src="lib/jquery.min.js"></script>
    <script src="lib/jquery.treetable.js"></script>
    <script src="lib/angular.min.js"></script>

    <script src="../src/angular-treetable.js"></script>

    <script src="js/example_dynamic.js"></script>

</head>
<body ng-controller="ExampleCtrl">

    <h3>Dynamic File Browser</h3>

    <script type="text/ng-template" id="tree_node">
        <tr tt-node is-branch="node.type == 'folder'" parent="parent">
            <td><span ng-bind="node.name"></span></td>
            <td ng-bind="node.type"></td>
            <td ng-bind="node.size"></td>
        </tr>
    </script>

    <table id="table" tt-table nodes="get_nodes" template="'tree_node'">
        <thead>
            <tr>
                <th>Filename</th>
                <th>Type</th>
                <th>Size</th>
            </tr>
        </thead>
        <tbody></tbody>
    </table>

</body>
</html>
Fix bug in the example, not passing along parent
Fix bug in the example, not passing along parent
