[Vuejs]-Saving the select filters values of items in list component after going back from viewing an item component

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 {

        }
}

Leave a comment