How to add the meta tags in Vuex?

Forums Vue.jsHow to add the meta tags in Vuex?
Staff asked 1 year ago

Answers (1)

Add Answer
Staff answered 1 year ago

//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

Heema Patel replied 1 year ago

Subscribe

Select Categories