I have a classic Vue Component structured like the following:
Vue.component('bar', {
template: `<div class="bar"></div>`,
data () {
return {
blocks: [
]
}
}
});
Furthermore, I also have a Vue Instance outlined as below.
new Vue ({
el: '#app',
data: {
value: 1
},
methods: {
add: function() {
// code to be added here
}
}
});
When the add function is triggered, there is a requirement to append some data to the component's block values. Given the constraint of not being able to use Vuex, what alternative solutions could be implemented for this scenario?