{"comment":{"url":"https://api.github.com/repos/vinyll/udata/comments/18166824","html_url":"https://github.com/vinyll/udata/commit/e5f1245933d2387ca3eb9a53d582b0323f76bf8e#commitcomment-18166824","id":18166824,"user":{"login":"noirbizarre","id":15725,"avatar_url":"https://avatars.githubusercontent.com/u/15725?v=3","gravatar_id":"","url":"https://api.github.com/users/noirbizarre","html_url":"https://github.com/noirbizarre","followers_url":"https://api.github.com/users/noirbizarre/followers","following_url":"https://api.github.com/users/noirbizarre/following{/other_user}","gists_url":"https://api.github.com/users/noirbizarre/gists{/gist_id}","starred_url":"https://api.github.com/users/noirbizarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noirbizarre/subscriptions","organizations_url":"https://api.github.com/users/noirbizarre/orgs","repos_url":"https://api.github.com/users/noirbizarre/repos","events_url":"https://api.github.com/users/noirbizarre/events{/privacy}","received_events_url":"https://api.github.com/users/noirbizarre/received_events","type":"User","site_admin":false},"position":88,"line":88,"path":"js/components/discussions/thread.vue","commit_id":"e5f1245933d2387ca3eb9a53d582b0323f76bf8e","created_at":"2016-07-07T22:59:49Z","updated_at":"2016-07-07T22:59:49Z","body":"Instead of form.querySelector you can directly have:\r\n- in the template: `<textarea v-model=\"comment class=\"form-control\" rows=\"3\" required></textarea>`\r\n- in vue:\r\n```javascript\r\ndata() {\r\n    return {\r\n        comment: ''\r\n    };\r\n}\r\n...\r\nmethods: {\r\n    submit() { // Event is useless here\r\n        // Check that comment is set\r\n        this.$api.post(`discussions/${this.discussion.id}/`, {comment: this.comment})\r\n            .then...\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"noirbizarre"}}