0๐
โ
I am now using keep-alive approach. The silly mistake was that I only named the component when I declared my routes.
{ path: '/questions-list', name:"questions-list", component: require('./components/qa/Questions.vue')}
For those who are facing the same problem, you should declare the name of the component inside of the component export object like the following:
export default {
name: 'questions-list',
data () {
return {
}
}
Source:stackexchange.com