{"action":"created","issue":{"url":"https://api.github.com/repos/ezraroi/ngJsTree/issues/22","labels_url":"https://api.github.com/repos/ezraroi/ngJsTree/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ezraroi/ngJsTree/issues/22/comments","events_url":"https://api.github.com/repos/ezraroi/ngJsTree/issues/22/events","html_url":"https://github.com/ezraroi/ngJsTree/issues/22","id":64481032,"number":22,"title":"Asynchronous loading nodes","user":{"login":"Incognito-Nemo","id":11144509,"avatar_url":"https://avatars.githubusercontent.com/u/11144509?v=3","gravatar_id":"","url":"https://api.github.com/users/Incognito-Nemo","html_url":"https://github.com/Incognito-Nemo","followers_url":"https://api.github.com/users/Incognito-Nemo/followers","following_url":"https://api.github.com/users/Incognito-Nemo/following{/other_user}","gists_url":"https://api.github.com/users/Incognito-Nemo/gists{/gist_id}","starred_url":"https://api.github.com/users/Incognito-Nemo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Incognito-Nemo/subscriptions","organizations_url":"https://api.github.com/users/Incognito-Nemo/orgs","repos_url":"https://api.github.com/users/Incognito-Nemo/repos","events_url":"https://api.github.com/users/Incognito-Nemo/events{/privacy}","received_events_url":"https://api.github.com/users/Incognito-Nemo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-26T09:39:11Z","updated_at":"2015-03-26T14:02:25Z","closed_at":null,"body":"Hello!\r\n\r\nWhen I load data1 all is ok but all the tree is loaded in one time.\r\ndata1 = [{\r\n\"id\": 1, \"parent\": \"#\", \"text\": \"Node 1\", \"children\": [\r\n{ \"id\": 2, \"parent\": \"1\", \"text\": \"Node 2\" },\r\n{ \"id\": 3, \"parent\": \"1\", \"text\": \"node 3\" }\r\n]\r\n}];\r\n\r\nI want use the loading tree nodes on expand node event.\r\n\r\nSo I use data2 and I have this error when I want to expand the first node: treeCtrl: error from js tree - {\"error\":\"nodata\",\"plugin\":\"core\",\"id\":\"core_05\",\"reason\":\"Could not load node\",\"data\":\"{\\\"id\\\":\\\"1\\\"}\"}   http://localhost:53001/Scripts/angular.js   Line 11655\r\n\r\ndata2 = [\r\n  { \"id\": 1, \"parent\": \"#\", \"text\": \"Node 1\", \"children\": true },\r\n  { \"id\": 2, \"parent\": \"1\", \"text\": \"Node 2\" },\r\n  { \"id\": 3, \"parent\": \"1\", \"text\": \"Node 3\" }\r\n];\r\n\r\nHow can I do it? It is a bug or a problem with my code?"},"comment":{"url":"https://api.github.com/repos/ezraroi/ngJsTree/issues/comments/86526448","html_url":"https://github.com/ezraroi/ngJsTree/issues/22#issuecomment-86526448","issue_url":"https://api.github.com/repos/ezraroi/ngJsTree/issues/22","id":86526448,"user":{"login":"ezraroi","id":5808368,"avatar_url":"https://avatars.githubusercontent.com/u/5808368?v=3","gravatar_id":"","url":"https://api.github.com/users/ezraroi","html_url":"https://github.com/ezraroi","followers_url":"https://api.github.com/users/ezraroi/followers","following_url":"https://api.github.com/users/ezraroi/following{/other_user}","gists_url":"https://api.github.com/users/ezraroi/gists{/gist_id}","starred_url":"https://api.github.com/users/ezraroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezraroi/subscriptions","organizations_url":"https://api.github.com/users/ezraroi/orgs","repos_url":"https://api.github.com/users/ezraroi/repos","events_url":"https://api.github.com/users/ezraroi/events{/privacy}","received_events_url":"https://api.github.com/users/ezraroi/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T14:02:25Z","updated_at":"2015-03-26T14:02:25Z","body":"Looked on it, the problem is the 'children' : true property.\r\nRemove it and everything is working fine"}}