Distributed via
A directive to use jquery-option-tree with AngularJS.
- Install with bower:
bower install --save angular-option-tree
- Include
angular-option-tree.js.
- Add
option-tree
to you app modules. - Use the
option-tree
directive.
<form class="form-horizontal" role="form" ng-controller="Demo1Ctrl">
<input option-tree="tree_data" option-tree-class="form-contol">
</form>
option-tree: JSON object in angular controller scope.
option-tree-class: customize style for generated <select>
element.
<form class="form-horizontal" role="form" ng-controller="Demo4Ctrl">
<input option-tree option-tree-src="example.json" option-tree-class="form-control">
</form>
option-tree-src: remote JSON source.
MIT