{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/313","labels_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/313/comments","events_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/313/events","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/313","id":52370959,"number":313,"title":"Programatically making a node not collapsed","user":{"login":"william-poitras","id":8493736,"avatar_url":"https://avatars.githubusercontent.com/u/8493736?v=3","gravatar_id":"","url":"https://api.github.com/users/william-poitras","html_url":"https://github.com/william-poitras","followers_url":"https://api.github.com/users/william-poitras/followers","following_url":"https://api.github.com/users/william-poitras/following{/other_user}","gists_url":"https://api.github.com/users/william-poitras/gists{/gist_id}","starred_url":"https://api.github.com/users/william-poitras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/william-poitras/subscriptions","organizations_url":"https://api.github.com/users/william-poitras/orgs","repos_url":"https://api.github.com/users/william-poitras/repos","events_url":"https://api.github.com/users/william-poitras/events{/privacy}","received_events_url":"https://api.github.com/users/william-poitras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-18T14:43:58Z","updated_at":"2015-02-19T11:23:18Z","closed_at":null,"body":"I am using the latest in the master branch.\r\n\r\nI have a dialog box which is suppose to manipulate a tree, but I'm having trouble finding the root of the tree, and then traversing a node's children to find the node I want, expanding each level as I go.\r\n\r\nThe problem is I can't get the scope of my tree.  If I use angular.element(document.getElementById('myUiTreeNode')).scope() I get my controller's scope.\r\n\r\nI can manipulate my model, and do the non-visual parts no problem, but I can't figure out how to access the underlying tree scopes to expand the tree as I go."},"comment":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/comments/75036583","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/313#issuecomment-75036583","issue_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/313","id":75036583,"user":{"login":"nobalmohan","id":2737010,"avatar_url":"https://avatars.githubusercontent.com/u/2737010?v=3","gravatar_id":"","url":"https://api.github.com/users/nobalmohan","html_url":"https://github.com/nobalmohan","followers_url":"https://api.github.com/users/nobalmohan/followers","following_url":"https://api.github.com/users/nobalmohan/following{/other_user}","gists_url":"https://api.github.com/users/nobalmohan/gists{/gist_id}","starred_url":"https://api.github.com/users/nobalmohan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nobalmohan/subscriptions","organizations_url":"https://api.github.com/users/nobalmohan/orgs","repos_url":"https://api.github.com/users/nobalmohan/repos","events_url":"https://api.github.com/users/nobalmohan/events{/privacy}","received_events_url":"https://api.github.com/users/nobalmohan/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T11:23:18Z","updated_at":"2015-02-19T11:23:18Z","body":"pass the tree scope to the function that trigger the dialog box.\r\n\r\nExample: ng-click=\"OpenDialog(this)\"\r\n\r\nIn controller,\r\n$scope OpenDialog = function (scope) {\r\n  // your tree scope is available here \r\n}"}}