{"action":"created","issue":{"url":"https://api.github.com/repos/pugjs/pug/issues/2623","repository_url":"https://api.github.com/repos/pugjs/pug","labels_url":"https://api.github.com/repos/pugjs/pug/issues/2623/labels{/name}","comments_url":"https://api.github.com/repos/pugjs/pug/issues/2623/comments","events_url":"https://api.github.com/repos/pugjs/pug/issues/2623/events","html_url":"https://github.com/pugjs/pug/issues/2623","id":191778963,"number":2623,"title":"Does Vue.js directives work with Pug.js?","user":{"login":"felipecaldas","id":3864696,"avatar_url":"https://avatars0.githubusercontent.com/u/3864696?v=4","gravatar_id":"","url":"https://api.github.com/users/felipecaldas","html_url":"https://github.com/felipecaldas","followers_url":"https://api.github.com/users/felipecaldas/followers","following_url":"https://api.github.com/users/felipecaldas/following{/other_user}","gists_url":"https://api.github.com/users/felipecaldas/gists{/gist_id}","starred_url":"https://api.github.com/users/felipecaldas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipecaldas/subscriptions","organizations_url":"https://api.github.com/users/felipecaldas/orgs","repos_url":"https://api.github.com/users/felipecaldas/repos","events_url":"https://api.github.com/users/felipecaldas/events{/privacy}","received_events_url":"https://api.github.com/users/felipecaldas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-26T00:56:00Z","updated_at":"2018-02-17T20:29:34Z","closed_at":"2016-11-26T04:12:35Z","author_association":"NONE","body":"Hi guys,\r\n\r\nI just created a simple expression application and trying to use the Vue.js directives to create two-way binding and others and using Pug.js as well. This is my Pug:\r\n\r\n```\r\nextends layout.pug\r\n\r\nblock content\r\n  div(class='content')\r\n    h1(id='title') {{ message }}\r\n    form(class=\"pure-form pure-form-stacked\")\r\n      fieldset\r\n          legend A Stacked Form\r\n          label(for=\"email\") Email\r\n            input(id=\"email\",type=\"email\", placeholder=\"Email\")\r\n          label(for=\"password\") Password\r\n            input(id=\"password\", type=\"password\", placeholder=\"Password\")\r\n          label(for=\"state\") State\r\n            select(id=\"state\")\r\n                option AL\r\n                option CA\r\n                option IL\r\n          input(type='text', \"v-model\"=\"message\")\r\n          input(type=\"button\", class=\"pure-button pure-button-primary\", value=\"Sign in\",  \"v-on:click\"='submitClick')\r\n  script.\r\n    var app = new Vue({\r\n      el:'#title',\r\n      data: {\r\n        message : 'A Vue Message'\r\n      },\r\n      methods: {\r\n        submitClick: function() {\r\n          console.log('click');\r\n        }\r\n      }\r\n      });\r\n\r\n```\r\n\r\nThe  {{ message }} line is working but the onClick event and the v-model is not... am I doing something wrong or it doesn't work?\r\nThanks !"},"comment":{"url":"https://api.github.com/repos/pugjs/pug/issues/comments/366469150","html_url":"https://github.com/pugjs/pug/issues/2623#issuecomment-366469150","issue_url":"https://api.github.com/repos/pugjs/pug/issues/2623","id":366469150,"user":{"login":"luckyjavid","id":706726,"avatar_url":"https://avatars0.githubusercontent.com/u/706726?v=4","gravatar_id":"","url":"https://api.github.com/users/luckyjavid","html_url":"https://github.com/luckyjavid","followers_url":"https://api.github.com/users/luckyjavid/followers","following_url":"https://api.github.com/users/luckyjavid/following{/other_user}","gists_url":"https://api.github.com/users/luckyjavid/gists{/gist_id}","starred_url":"https://api.github.com/users/luckyjavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckyjavid/subscriptions","organizations_url":"https://api.github.com/users/luckyjavid/orgs","repos_url":"https://api.github.com/users/luckyjavid/repos","events_url":"https://api.github.com/users/luckyjavid/events{/privacy}","received_events_url":"https://api.github.com/users/luckyjavid/received_events","type":"User","site_admin":false},"created_at":"2018-02-17T20:29:34Z","updated_at":"2018-02-17T20:29:34Z","author_association":"NONE","body":"If the doctype is html, Pug knows not to mirror the attribute, and instead uses the terse style (understood by all browsers).\r\ndoctype html\r\n\r\ninput(type='checkbox' checked)"}}
{"actor":{"display_login":"luckyjavid"}}