I am trying to use this interesting looking Angular treeview component, with no luck.
I know it is not a browser issue, because when I load it up from jsfiddle it works fine. (Tried it in Chrome latest version and IE, both on Windows)
I will paste a few poignant parts downloaded from the GIThub usage instructions.
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js"></script>
<script type="text/javascript" src="/angular.treeview.js"></script>
<link rel="stylesheet" type="text/css" href="css/angular.treeview.css">
<script>
(function () {
//angular module
var myApp = angular.module('myApp', ['angularTreeview']);
//test controller
myApp.controller('myController', function ($scope) {
//test tree model 1
$scope.roleList1 = [
{ "roleName": "User", "roleId": "role1", "children": [
{ "roleName": "subUser1", "roleId": "role11", "children": [] },
{ "roleName": "subUser2", "roleId": "role12", "children": [
{ "roleName": "subUser2-1", "roleId": "role121", "children": [
. . .
];
</script>
</head>
<body>
<div ng-app="myApp">
<div ng-controller="myController">
<div>
<input type="button" value="TREE MODEL 1" data-ng-click="roleList = roleList1"/>
<input type="button" value="TREE MODEL 2" data-ng-click="roleList = roleList2"/>
</div>
<div style="margin:10px 0 30px 0; padding:10px; background-color:#EEEEEE; border-radius:5px; font:12px Tahoma;">
<span><b>Selected Node</b> : {{currentNode.roleName}}</span>
</div>
<div
data-angular-treeview="true"
data-tree-model="roleList"
data-node-id="roleId"
data-node-label="roleName"
data-node-children="children">
</div>
</div>
</div>
</body>
This is what I see when viewing the page. Clicking the buttons does nothing.

Does anyone know what I might be doing wrong?