{"action":"created","issue":{"url":"https://api.github.com/repos/quasarframework/quasar/issues/1507","repository_url":"https://api.github.com/repos/quasarframework/quasar","labels_url":"https://api.github.com/repos/quasarframework/quasar/issues/1507/labels{/name}","comments_url":"https://api.github.com/repos/quasarframework/quasar/issues/1507/comments","events_url":"https://api.github.com/repos/quasarframework/quasar/issues/1507/events","html_url":"https://github.com/quasarframework/quasar/pull/1507","id":292163429,"number":1507,"title":"QDocument bind to document title from template","user":{"login":"realcarbonneau","id":29619229,"avatar_url":"https://avatars2.githubusercontent.com/u/29619229?v=4","gravatar_id":"","url":"https://api.github.com/users/realcarbonneau","html_url":"https://github.com/realcarbonneau","followers_url":"https://api.github.com/users/realcarbonneau/followers","following_url":"https://api.github.com/users/realcarbonneau/following{/other_user}","gists_url":"https://api.github.com/users/realcarbonneau/gists{/gist_id}","starred_url":"https://api.github.com/users/realcarbonneau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realcarbonneau/subscriptions","organizations_url":"https://api.github.com/users/realcarbonneau/orgs","repos_url":"https://api.github.com/users/realcarbonneau/repos","events_url":"https://api.github.com/users/realcarbonneau/events{/privacy}","received_events_url":"https://api.github.com/users/realcarbonneau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-27T23:54:50Z","updated_at":"2018-03-14T16:18:29Z","closed_at":"2018-03-14T16:18:29Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/quasarframework/quasar/pulls/1507","html_url":"https://github.com/quasarframework/quasar/pull/1507","diff_url":"https://github.com/quasarframework/quasar/pull/1507.diff","patch_url":"https://github.com/quasarframework/quasar/pull/1507.patch"},"body":"This is an extremely simple component that permits the user to change document header properties directly from the template.  At the moment, there is no simple way to reactively bind to the document title. Other properties such as keywords, description, etc. could easily be added if users find this useful.  \r\n\r\nOf course, in many cases it would be better to update these in the router or programmatically, however, here are the advantages of the component:\r\n  -Easier for beginners\r\n  -Visual reference in the template\r\n  -Reactive on creation, update and route changes. \r\n\r\nTo do this programatically would require constants and logic programmed in the router or Vuex or other global variables.  \r\nTo do this programatically in the component requires setting the title on creation and also subsequently watching for route changes to update the title\r\n\r\nThere also exists https://github.com/troxler/vue-headful, which is more complete, but more complexe to integrate for beginners, and it is alot bigger. I would suggest to just support a minimal set of properties, mostly for beginners and simplicity.  For advanced or exhaustive support, devs can use the external vue-headful.\r\n\r\nVideo of demo:  ```<q-document :title=\"`My choice: ${option}`\"/>```\r\n\r\n![documenttitledynamic](https://user-images.githubusercontent.com/29619229/35477557-745cf950-0393-11e8-84fb-04ae35680df3.gif)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/quasarframework/quasar/issues/comments/373082292","html_url":"https://github.com/quasarframework/quasar/pull/1507#issuecomment-373082292","issue_url":"https://api.github.com/repos/quasarframework/quasar/issues/1507","id":373082292,"user":{"login":"rstoenescu","id":4665641,"avatar_url":"https://avatars0.githubusercontent.com/u/4665641?v=4","gravatar_id":"","url":"https://api.github.com/users/rstoenescu","html_url":"https://github.com/rstoenescu","followers_url":"https://api.github.com/users/rstoenescu/followers","following_url":"https://api.github.com/users/rstoenescu/following{/other_user}","gists_url":"https://api.github.com/users/rstoenescu/gists{/gist_id}","starred_url":"https://api.github.com/users/rstoenescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstoenescu/subscriptions","organizations_url":"https://api.github.com/users/rstoenescu/orgs","repos_url":"https://api.github.com/users/rstoenescu/repos","events_url":"https://api.github.com/users/rstoenescu/events{/privacy}","received_events_url":"https://api.github.com/users/rstoenescu/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T16:18:29Z","updated_at":"2018-03-14T16:18:29Z","author_association":"OWNER","body":"Hi. this is too essy to be done. Don't think it needs to be added to Quasar."}}
{"actor":{"display_login":"rstoenescu"}}