{"action":"created","issue":{"url":"https://api.github.com/repos/yyx990803/vue/issues/898","labels_url":"https://api.github.com/repos/yyx990803/vue/issues/898/labels{/name}","comments_url":"https://api.github.com/repos/yyx990803/vue/issues/898/comments","events_url":"https://api.github.com/repos/yyx990803/vue/issues/898/events","html_url":"https://github.com/yyx990803/vue/issues/898","id":85602251,"number":898,"title":"$key not set when repeating an object","user":{"login":"thasmo","id":184284,"avatar_url":"https://avatars.githubusercontent.com/u/184284?v=3","gravatar_id":"","url":"https://api.github.com/users/thasmo","html_url":"https://github.com/thasmo","followers_url":"https://api.github.com/users/thasmo/followers","following_url":"https://api.github.com/users/thasmo/following{/other_user}","gists_url":"https://api.github.com/users/thasmo/gists{/gist_id}","starred_url":"https://api.github.com/users/thasmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thasmo/subscriptions","organizations_url":"https://api.github.com/users/thasmo/orgs","repos_url":"https://api.github.com/users/thasmo/repos","events_url":"https://api.github.com/users/thasmo/events{/privacy}","received_events_url":"https://api.github.com/users/thasmo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T18:42:16Z","updated_at":"2015-06-05T18:55:32Z","closed_at":null,"body":"I've got an object called `objects` like this:\r\n```js\r\n{\r\n\ta: {\r\n\t\tname: 'A',\r\n\t\ttypes: [1,2]\r\n\t},\r\n\tb: {\r\n\t\tname: 'B',\r\n\t\ttypes: [2,3]\r\n\t},\r\n\tc: {\r\n\t\tname: 'C',\r\n\t\ttypes: [1,3]\r\n\t}\r\n}\r\n```\r\nRepeating it like this:\r\n```html\r\n<a href=\"/objects/{{$key}}\" v-repeat=\"object: objects\">\r\n\t<i class=\"icon {{$key}}\"/>\r\n\t{{objects.name}}\r\n</a>\r\n```\r\nResults in this:\r\n```html\r\n<a href=\"/objects/a\">\r\n\t<i class=\"icon undefined\"/>\r\n\tA\r\n</a>\r\n<a href=\"/objects/b\">\r\n\t<i class=\"icon undefined\"/>\r\n\tB\r\n</a>\r\n<a href=\"/objects/c\">\r\n\t<i class=\"icon undefined\"/>\r\n\tC\r\n</a>\r\n```\r\nThe key in the root element is working fine, but in the descendent element it's undefined. It would be really nice to have access to the key inside the repeated element as well. Is this possible?"},"comment":{"url":"https://api.github.com/repos/yyx990803/vue/issues/comments/109397284","html_url":"https://github.com/yyx990803/vue/issues/898#issuecomment-109397284","issue_url":"https://api.github.com/repos/yyx990803/vue/issues/898","id":109397284,"user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T18:55:32Z","updated_at":"2015-06-05T18:55:32Z","body":"Can you make a jsfiddle?"}}