0.1.0 • Published 8 years ago
vue-document-title v0.1.0
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
0.1.0
8 years ago