[Vuejs]-Why append method not working with empty array in VueJS

0👍

Using this should work

    data() {
        return {
            selectedResource: [],
        }
    },

0👍

You can use $set for add item to array:

this.$set(yourArray, 'yourIndex', 'YourValue')

Leave a comment