How to add the meta tags in Vuex?
Answers (1)
Add Answer//install vue-meta
npm install vue-meta
// put this into your main.js file anywhere AFTER loading Vue
import VueMeta from ‘vue-meta’
Vue.use(VueMeta)
export default {
name: ‘App’,
metaInfo() {
return {
title: “The Code Hubs – Learn to Lead world”,
meta: [
{ name: ‘description’, content: ‘TheCodeHubs is the best way to Browse and Learn Programming. TheCodeHubs provides strategic business solutions and develop. ‘},
{ property: ‘og:title’, content: “The Code Hubs – Learn to Lead world”},
{ property: ‘og:site_name’, content: ‘The Code Hubs’},
{property: ‘og:type’, content: ‘website’},
{name: ‘robots’, content: ‘index,follow’}
]
}
}
}
It’s not working in vuex