Pure AngularJS based tree menu directive.
Copy the script and css into your project and add a script and link tag to your page.
Add a dependency to your application module.
Add a tree to your application. See Usage.
Attributes of angular treeview are below.
- angular-treeview: the treeview directive
- tree-model : the tree model on $scope.
- node-id : each node's id
- node-label : each node's label
- node-children: each node's children
Here is a simple example.
If tree node is selected, then that selected tree node is saved to $scope.currentNode. By using $watch, the controller can recognize the tree selection.
Same with AngularJS. Safari, Chrome, Firefox, Opera, IE8, IE9 and mobile browsers (Android, Chrome Mobile, iOS Safari).
The MIT License.
Copyright ⓒ 2013 AHN JAE-HA.