2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-05-18 05:09:38 +03:00
Files
vue-meta/test/fixtures/basic/App.vue
T
2019-03-23 16:00:30 +01:00

26 lines
414 B
Vue

<template>
<div id="app">
<h1>Basic</h1>
<router-view></router-view>
<p>Inspect Element to see the meta info</p>
</div>
</template>
<script>
export default {
metaInfo() {
return {
meta: [
{ vmid: 'charset', charset: 'utf-8' }
],
afterNavigation: () => {
this.$emit('routeChanged')
}
}
},
mounted() {
window.$vueMeta = this
}
}
</script>