vue-document-title
v0.1.0
Published
Vue.js version of [react-document-title](https://github.com/gaearon/react-document-title)
Downloads
3
Readme
vue-document-title
Vue.js version of react-document-title
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Usage
<template>
<document-title :title="caption">...sub...</document-title>
</template>
<script>
import DocumentTitle from 'vue-document-title'
const data = {caption: 'first title'}
export default {
data: function () {
return data
}
}
setTimeout(function () {
data.caption = 'next title'
}, 2000)
</script>
TODO
- [ ] test
- [ ] flowtype