Imagine I have a scenario with 3 unique servers as follows:
https://server-1.com
https://server-2.com
https://server-3.com
In my Vue application, I want to dynamically change an image based on the server being used. Can I achieve this by utilizing something like
v-bind:src="server1.image"
to access the image?
My thought process involves setting up Vue in the following way:
var app = new Vue({
el: '#app',
server1: {
image1: imagelocation
image2: imagelocation
},
server2: {
image1: imagelocation
image2: imagelocation
},
server3: {
image1: imagelocation
image2: imagelocation
}
});
Is this approach feasible? Or am I misunderstanding how Vue should be utilized?