vue-helmet
Like react-helmet, a HTML head manager for Vue, edit the page title easily!
Instllation
Browser globals
The dist folder contains
vue-helmet.js
andvue-helmet.min.js
with the component exported in thewindow.VueHelmet
object.
NPM
$ npm install --save vue-helmet
CommonJS
var VueHelmet = ; components: 'vue-helmet': VueHelmet
ES6
components: VueHelmet
Example
Props
Prop | Type | Example |
---|---|---|
html-attributes | Object | :html-attributes="{'lang': 'zh-CN'}" |
title | String | title="New Title Here" |
base | Object | :base="{'target': '_blank', 'href': 'http://a.d.c'}" |
meta | Object | :meta="{'description': 'New Description Here.'}" |
links | Array | :links="[{'rel': 'canonical', 'href': 'http://a.b.c'}]" |
scripts | Array | :scripts="[{'type': 'text/javascript', 'src': 'http://abc.xyz/filename.js'}]" |