{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2248","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2248/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2248/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2248/events","html_url":"https://github.com/vuejs/vue/issues/2248","id":129379112,"number":2248,"title":"v-el behaviour","user":{"login":"jbrialon","id":5830909,"avatar_url":"https://avatars.githubusercontent.com/u/5830909?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrialon","html_url":"https://github.com/jbrialon","followers_url":"https://api.github.com/users/jbrialon/followers","following_url":"https://api.github.com/users/jbrialon/following{/other_user}","gists_url":"https://api.github.com/users/jbrialon/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrialon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrialon/subscriptions","organizations_url":"https://api.github.com/users/jbrialon/orgs","repos_url":"https://api.github.com/users/jbrialon/repos","events_url":"https://api.github.com/users/jbrialon/events{/privacy}","received_events_url":"https://api.github.com/users/jbrialon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vuejs/vue/labels/suggestion","name":"suggestion","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-28T08:34:52Z","updated_at":"2016-01-29T19:29:58Z","closed_at":null,"body":"Hello,\r\n\r\nright now when we use v-el we are able to register a reference to a DOM element on its owner Vue instance’s $els object for easier access.\r\n\r\nit could be great if it could retrieve an array of object by using v-els for example\r\n\r\n```html\r\n<span v-els:msg>hello</span>\r\n<span v-els:msg>world</span>\r\n```\r\n\r\n```javascript\r\nthis.$els.msg // -> array(<span>hello</span>,<span>world</span>);\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/176927510","html_url":"https://github.com/vuejs/vue/issues/2248#issuecomment-176927510","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2248","id":176927510,"user":{"login":"young-steveo","id":497048,"avatar_url":"https://avatars.githubusercontent.com/u/497048?v=3","gravatar_id":"","url":"https://api.github.com/users/young-steveo","html_url":"https://github.com/young-steveo","followers_url":"https://api.github.com/users/young-steveo/followers","following_url":"https://api.github.com/users/young-steveo/following{/other_user}","gists_url":"https://api.github.com/users/young-steveo/gists{/gist_id}","starred_url":"https://api.github.com/users/young-steveo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/young-steveo/subscriptions","organizations_url":"https://api.github.com/users/young-steveo/orgs","repos_url":"https://api.github.com/users/young-steveo/repos","events_url":"https://api.github.com/users/young-steveo/events{/privacy}","received_events_url":"https://api.github.com/users/young-steveo/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T19:29:58Z","updated_at":"2016-01-29T19:29:58Z","body":"It seems useful.  Might I suggest this syntax:\r\n\r\nInstead of `v-els` use a modifier for the standard `v-el`.  A `.list` modifier would tell the directive to put the elements in an array:\r\n\r\n```html\r\n<span v-el:message>hello</span> <!-- this.$els.message -->\r\n<span v-el:messages.list>world 1</span> <!-- this.$els.messages[0] -->\r\n<span v-el:messages.list>world 2</span><!-- this.$els.messages[1] -->\r\n```"}}