I am working with the ImageUpload.vue
component, which is a straightforward Bootstrap modal containing a few methods.
I am currently exploring the best approach to utilize one of these methods. Could it be implemented like this:
const app = new Vue({
components: {
'component-image-upload': require('./components/ImageUpload.vue'),
},
el: '#app',
data() {
return {
images: [],
pagination: {
previous: null,
next: null
}
}
},
methods: {
createImage: function(page) {
this['component-image-upload'].load(image)
}
}
});
The main concept here is to effectively repurpose the model for editing existing image data.