{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/258","labels_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/258/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/258/comments","events_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/258/events","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/258","id":45806954,"number":258,"title":"Using the tree to create a nested Form - Issue with ng-model","user":{"login":"ktamilvanan","id":3724506,"avatar_url":"https://avatars.githubusercontent.com/u/3724506?v=3","gravatar_id":"","url":"https://api.github.com/users/ktamilvanan","html_url":"https://github.com/ktamilvanan","followers_url":"https://api.github.com/users/ktamilvanan/followers","following_url":"https://api.github.com/users/ktamilvanan/following{/other_user}","gists_url":"https://api.github.com/users/ktamilvanan/gists{/gist_id}","starred_url":"https://api.github.com/users/ktamilvanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktamilvanan/subscriptions","organizations_url":"https://api.github.com/users/ktamilvanan/orgs","repos_url":"https://api.github.com/users/ktamilvanan/repos","events_url":"https://api.github.com/users/ktamilvanan/events{/privacy}","received_events_url":"https://api.github.com/users/ktamilvanan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-10-14T22:11:12Z","updated_at":"2015-05-07T08:01:17Z","closed_at":"2014-10-15T17:44:03Z","body":"I am using the tree to create a form with nested structure and it renders perfectly for me. The problem i face is when the form is edited. The ng model is not updating the $scope values. \r\n\r\n```\r\n   <script type=\"text/ng-template\" id=\"nodes_renderer.html\">\r\n                            <div  ui-tree-handle class=\"form-group\">\r\n                                <div>\r\n                                    <label for=\"{{node.name}}\" class=\"col-sm-4 control-label\">\r\n                                        <a class=\"btn-xs\"  ng-click=\"toggle(this)\" ng-show=\"node.nodes\">\r\n                                            <span class=\"glyphicon\" ng-class=\"{'glyphicon-plus-sign': collapsed, 'glyphicon-minus-sign': !collapsed}\"></span>\r\n                                        </a>\r\n                                        {{node.name}}\r\n                                    </label>\r\n                                    <div class=\"col-sm-8\">\r\n                                        <customfield entry-map=\"entryMap\" ng-model=\"parameter.value\" parameter=\"node.value\"></customfield>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                            <ol ui-tree-nodes=\"options\" ng-model=\"node.nodes\"  ng-class=\"{hidden: collapsed}\">\r\n                                <li ng-repeat=\"node in node.nodes\" ui-tree-node ng-include=\"'nodes_renderer.html'\">\r\n                                </li>\r\n                            </ol>\r\n                        </script>\r\n                        <div ui-tree=\"options\" data-drag-enabled=\"false\">\r\n                            <ol ui-tree-nodes=\"\" ng-model=\"tree\" id=\"tree-root\">\r\n                                <li ng-repeat=\"node in tree\" ui-tree-node ng-include=\"'nodes_renderer.html'\"></li>\r\n                            </ol>\r\n                        </div>\r\n```\r\n\r\nThe custom field directive is basically a textbox. The initial value renders on the form fine. How to get the changes back to the scope?"},"comment":{"url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/comments/99761123","html_url":"https://github.com/angular-ui-tree/angular-ui-tree/issues/258#issuecomment-99761123","issue_url":"https://api.github.com/repos/angular-ui-tree/angular-ui-tree/issues/258","id":99761123,"user":{"login":"pootzko","id":535842,"avatar_url":"https://avatars.githubusercontent.com/u/535842?v=3","gravatar_id":"","url":"https://api.github.com/users/pootzko","html_url":"https://github.com/pootzko","followers_url":"https://api.github.com/users/pootzko/followers","following_url":"https://api.github.com/users/pootzko/following{/other_user}","gists_url":"https://api.github.com/users/pootzko/gists{/gist_id}","starred_url":"https://api.github.com/users/pootzko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pootzko/subscriptions","organizations_url":"https://api.github.com/users/pootzko/orgs","repos_url":"https://api.github.com/users/pootzko/repos","events_url":"https://api.github.com/users/pootzko/events{/privacy}","received_events_url":"https://api.github.com/users/pootzko/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T08:01:17Z","updated_at":"2015-05-07T08:01:17Z","body":"So you closed this but did not provide an answer. Care to explain if you fixed this or? Thnx."}}