{"action":"created","issue":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1053","labels_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1053/labels{/name}","comments_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1053/comments","events_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1053/events","html_url":"https://github.com/aldeed/meteor-autoform/issues/1053","id":89496352,"number":1053,"title":"angular-meteor and autoform (update case)","user":{"login":"kwk","id":193408,"avatar_url":"https://avatars.githubusercontent.com/u/193408?v=3","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-19T07:50:45Z","updated_at":"2015-07-02T07:13:06Z","closed_at":"2015-07-02T07:13:06Z","body":"Hi there,\r\n\r\nI'm not new to angular but to angular and meteor. I have a simple app running and I've defined a model that I successfully generated a form for using [aldeed:meteor-autoform](https://github.com/aldeed/meteor-autoform/). I can use this form to insert items into my collection. This all works perfectly fine.\r\n\r\nBUT, I have no clue how I can show values that already exist in my collection inside an autoform. Here's an [example](http://autoform.meteor.com/updateaf) that works if you only have meteor.\r\n\r\nIn my simple application I've generated **list** and **details** page for books using the angular-meteor package. Therefore the object that I want to show inside of the autoform is available in my details controller like this:\r\n\r\n```javascript\r\n$scope.book = $meteor.object(Books, $stateParams.dockerhostId);\r\n``` \r\n\r\nHow can I get `$scope.book` inside an autoform template that looks like this:\r\n\r\n```html\r\n  {{#autoForm collection=\"Books\" type=\"update\" id=\"booksUpdateForm\"}}\r\n      {{> afFormGroup name=\"name\" template=\"bootstrap3-horizontal\" label-class=\"col-sm-3\" input-col-class=\"col-sm-9\"}}\r\n  {{/autoForm}}\r\n```\r\n\r\nThank you in advance!\r\n-Konrad"},"comment":{"url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/comments/117937879","html_url":"https://github.com/aldeed/meteor-autoform/issues/1053#issuecomment-117937879","issue_url":"https://api.github.com/repos/aldeed/meteor-autoform/issues/1053","id":117937879,"user":{"login":"kwk","id":193408,"avatar_url":"https://avatars.githubusercontent.com/u/193408?v=3","gravatar_id":"","url":"https://api.github.com/users/kwk","html_url":"https://github.com/kwk","followers_url":"https://api.github.com/users/kwk/followers","following_url":"https://api.github.com/users/kwk/following{/other_user}","gists_url":"https://api.github.com/users/kwk/gists{/gist_id}","starred_url":"https://api.github.com/users/kwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwk/subscriptions","organizations_url":"https://api.github.com/users/kwk/orgs","repos_url":"https://api.github.com/users/kwk/repos","events_url":"https://api.github.com/users/kwk/events{/privacy}","received_events_url":"https://api.github.com/users/kwk/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T07:13:06Z","updated_at":"2015-07-02T07:13:06Z","body":"Together with the guys from angular-meteor I've solved the problem for me. Read about it [here](https://github.com/Urigo/angular-meteor/issues/450)."}}