Maybe this was dicussed before but I couldnt find it, but is there a way I can set the titles i want in routes meta, and then get it to vue-meta? Working together with titleTemplate aswell, I'm trying to do with beforeEach router hooks but didn't realized yet
It should work within Component beforeEach hook directly, I don't have time to give you an example sorry.
If someone still needing this
const routes = [
{
path: '/some-path',
name: 'some-name',
component: SomeComponent,
meta: {
title: 'Some cool title'
}
}
]
metaInfo() {
return {
title: this.$route.meta.title
}
}
Most helpful comment
If someone still needing this