diff --git a/bower.json b/bower.json index 9e44e15..368ad3a 100644 --- a/bower.json +++ b/bower.json @@ -1,15 +1,26 @@ { "name": "jsTree-directive", - "version": "0.1.0", + "version": "0.1.1", "authors": [ "Arvind Ravulavaru " ], "description": "An Angular Directive for jsTree", - "keywords": "Angular, Directive, jsTree", + "keywords": [ + "Angular", + "Directive", + "jsTree" + ], "main": "jsTree.directive.js", "license": "MIT", "homepage": "https://github.com/arvindr21/jsTree-directive", "ignore": [ - "**/.*" + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "moduleType": [ + "node" ] } diff --git a/jsTree.directive.js b/jsTree.directive.js index 771b38b..3ccb4a6 100644 --- a/jsTree.directive.js +++ b/jsTree.directive.js @@ -1,6 +1,6 @@ /* * jstree.directive [http://www.jstree.com] - * https://github.com/arvindr21/jsTree-directive + * http://arvindr21.github.io/jsTree-Angular-Directive * * Copyright (c) 2014 Arvind Ravulavaru * Licensed under the MIT license. @@ -98,6 +98,13 @@ ngJSTree.directive('jsTree', function($http) { }; treeDir.init(s, e, a, config); }); + } else if (a.treeData == 'scope') { + config = { + 'core': { + 'data': s[a.treeModel] + } + }; + treeDir.init(s, e, a, config); } else if (a.treeAjax) { config = { 'core': {