{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/603","labels_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/603/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/603/comments","events_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/603/events","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/603","id":109693735,"number":603,"title":"'Cannot read property '$modelValue' of null' when ui-tree-nodes loaded asynchronously","user":{"login":"dangoodman","id":345718,"avatar_url":"https://avatars.githubusercontent.com/u/345718?v=3","gravatar_id":"","url":"https://api.github.com/users/dangoodman","html_url":"https://github.com/dangoodman","followers_url":"https://api.github.com/users/dangoodman/followers","following_url":"https://api.github.com/users/dangoodman/following{/other_user}","gists_url":"https://api.github.com/users/dangoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/dangoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangoodman/subscriptions","organizations_url":"https://api.github.com/users/dangoodman/orgs","repos_url":"https://api.github.com/users/dangoodman/repos","events_url":"https://api.github.com/users/dangoodman/events{/privacy}","received_events_url":"https://api.github.com/users/dangoodman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-04T17:51:47Z","updated_at":"2015-10-04T18:22:32Z","closed_at":null,"body":"An error occurs If `ui-tree-nodes` directive is not present at the load time (for example loaded with `ng-include`):\r\n```\r\nTypeError: Cannot read property '$modelValue' of null\r\n    at Object.fn (angular-ui-tree.js:390)\r\n    at n.$digest (angular.min.js:130)\r\n    at n.$apply (angular.min.js:133)\r\n    at angular.min.js:20\r\n    at Object.e [as invoke] (angular.min.js:39)\r\n    at d (angular.min.js:19)\r\n    at yc (angular.min.js:20)\r\n    at Xd (angular.min.js:19)\r\n    at angular.min.js:292\r\n    at HTMLDocument.a (angular.min.js:174)\r\n```\r\n\r\nHere is a plunker reproducing the issue — http://plnkr.co/edit/t5HWb2twmOIzfvfTmOWS?p=preview.\r\n\r\nWill make a PR fixing the issue soon."},"comment":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/comments/145370992","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/603#issuecomment-145370992","issue_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/603","id":145370992,"user":{"login":"dangoodman","id":345718,"avatar_url":"https://avatars.githubusercontent.com/u/345718?v=3","gravatar_id":"","url":"https://api.github.com/users/dangoodman","html_url":"https://github.com/dangoodman","followers_url":"https://api.github.com/users/dangoodman/followers","following_url":"https://api.github.com/users/dangoodman/following{/other_user}","gists_url":"https://api.github.com/users/dangoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/dangoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dangoodman/subscriptions","organizations_url":"https://api.github.com/users/dangoodman/orgs","repos_url":"https://api.github.com/users/dangoodman/repos","events_url":"https://api.github.com/users/dangoodman/events{/privacy}","received_events_url":"https://api.github.com/users/dangoodman/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T18:22:32Z","updated_at":"2015-10-04T18:22:32Z","body":"Well, it's actually fixed in `sources` with https://github.com/angular-ui-tree/angular-ui-tree/commit/fcd6f6334950b931ef41dae518ded6ea54bb06a0. Dist files are not updated yet."}}