{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/267","labels_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/267/comments","events_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/267/events","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/267","id":47133256,"number":267,"title":"subNode.$modelValue is undefined","user":{"login":"Geschan","id":1496312,"avatar_url":"https://avatars.githubusercontent.com/u/1496312?v=3","gravatar_id":"","url":"https://api.github.com/users/Geschan","html_url":"https://github.com/Geschan","followers_url":"https://api.github.com/users/Geschan/followers","following_url":"https://api.github.com/users/Geschan/following{/other_user}","gists_url":"https://api.github.com/users/Geschan/gists{/gist_id}","starred_url":"https://api.github.com/users/Geschan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geschan/subscriptions","organizations_url":"https://api.github.com/users/Geschan/orgs","repos_url":"https://api.github.com/users/Geschan/repos","events_url":"https://api.github.com/users/Geschan/events{/privacy}","received_events_url":"https://api.github.com/users/Geschan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-10-29T10:46:23Z","updated_at":"2015-08-31T13:11:12Z","closed_at":null,"body":"Hey,\r\n\r\nI'm trying to use angular ui tree, but I always get this error:\r\n\r\n```\r\nError: subNode.$modelValue is undefined\r\n$scope.initSubNode@http://localhost:9000/bower_components/angular-ui-tree/dist/angular-ui-tree.js:374:11\r\n$scope.init@http://localhost:9000/bower_components/angular-ui-tree/dist/angular-ui-tree.js:484:11\r\n.link@http://localhost:9000/bower_components/angular-ui-tree/dist/angular-ui-tree.js:806:13\r\nnodeLinkFn@http://localhost:9000/bower_components/angular/angular.js:6580:1\r\ncompositeLinkFn@http://localhost:9000/bower_components/angular/angular.js:5986:15\r\npublicLinkFn@http://localhost:9000/bower_components/angular/angular.js:5891:30\r\nboundTranscludeFn@http://localhost:9000/bower_components/angular/angular.js:6005:13\r\ncontrollersBoundTransclude@http://localhost:9000/bower_components/angular/angular.js:6600:11\r\nngIncludeWatchAction/<@http://localhost:9000/bower_components/angular/angular.js:19359:19\r\n$http/promise.success/<@http://localhost:9000/bower_components/angular/angular.js:7946:11\r\nqFactory/defer/deferred.promise.then/wrappedCallback@http://localhost:9000/bower_components/angular/angular.js:11319:15\r\nqFactory/ref/<.then/<@http://localhost:9000/bower_components/angular/angular.js:11405:11\r\n$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:9000/bower_components/angular/angular.js:12412:9\r\n$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:9000/bower_components/angular/angular.js:12224:15\r\n$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:9000/bower_components/angular/angular.js:12516:13\r\ndone@http://localhost:9000/bower_components/angular/angular.js:8204:34\r\ncompleteRequest@http://localhost:9000/bower_components/angular/angular.js:8412:7\r\ncreateHttpBackend/</xhr.onreadystatechange@http://localhost:9000/bower_components/angular/angular.js:8355:1\r\n\r\n<li ng-repeat=\"group in groups.records\" ui-tree-node=\"\" ng-include=\"'groups_renderer.html'\" class=\"list-group-item ng-scope angular-ui-tree-node\">\r\n```\r\n\r\n\r\nIt seems to work somehow, but I I don't really get why this error pops up.\r\n\r\nAngular: v1.2.16\r\nAngular UI Tree: v2.1.5\r\n\r\nThx in advance,\r\nGesh"},"comment":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/comments/136366812","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/267#issuecomment-136366812","issue_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/267","id":136366812,"user":{"login":"shantanubhadoria","id":545290,"avatar_url":"https://avatars.githubusercontent.com/u/545290?v=3","gravatar_id":"","url":"https://api.github.com/users/shantanubhadoria","html_url":"https://github.com/shantanubhadoria","followers_url":"https://api.github.com/users/shantanubhadoria/followers","following_url":"https://api.github.com/users/shantanubhadoria/following{/other_user}","gists_url":"https://api.github.com/users/shantanubhadoria/gists{/gist_id}","starred_url":"https://api.github.com/users/shantanubhadoria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shantanubhadoria/subscriptions","organizations_url":"https://api.github.com/users/shantanubhadoria/orgs","repos_url":"https://api.github.com/users/shantanubhadoria/repos","events_url":"https://api.github.com/users/shantanubhadoria/events{/privacy}","received_events_url":"https://api.github.com/users/shantanubhadoria/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T13:11:12Z","updated_at":"2015-08-31T13:11:12Z","body":"I too have this issue.\r\neven when I simply loop over the tree.\r\n\r\n    <div ui-tree=\"treeOptions\" id=\"tree-root\">\r\n      <ol ui-tree-nodes ng-model=\"data\">\r\n        <li ng-repeat=\"location in locations\" ui-tree-node></li>\r\n      </ol>\r\n    </div>\r\n\r\nI didn't even do a ng-include and I get this error.\r\n\r\n    Error: o.scope.$modelValue is undefined"}}