vue-document-title

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i vue-document-title

Weekly Downloads

8

Version

0.1.0

License

none

Last publish

Collaborators

  • zhenyong