How to include Vue plugins to Vue TypeScript's template, like vue-webpack-typescript?
For example, vue-meta.
I already add to ./src/main.ts this:
import * as Meta from 'vue-meta';
Vue.use(Meta, {
keyName: 'head',
attribute: 'data-vue-meta',
ssrAttribute: 'data-vue-meta-ssr',
tagIDKeyName: 'vmid'
});
And add this to ./src/components/home/home.ts component:
export class HomeComponent extends Vue {
static head() {
return {
title: 'Test'
}
}
}
But this not working, don't show over written title..