import Vue from 'vue'
import VueMeta from 'vue-meta'
Vue.use(VueMeta)
new Vue({
template: `
Basic
Inspect Element to see the meta info
`,
metaInfo: () => ({
title: 'Basic',
titleTemplate: '%s | Vue Meta Examples',
htmlAttrs: {
lang: 'en',
amp: undefined
},
headAttrs: {
test: true
},
meta: [
{ name: 'description', content: 'Hello', vmid: 'test' }
],
script: [
{ innerHTML: '{ "@context": "http://www.schema.org", "@type": "Organization" }', type: 'application/ld+json' },
{ innerHTML: '{ "body": "yes" }', body: true, type: 'application/ld+json' }
],
__dangerouslyDisableSanitizers: ['script']
})
}).$mount('#app')