I currently have my image tag set up like so:
<img v-if="highQuality" :src="post.data.url">
<img v-if="highQuality == false" :src="post.data.thumbnail">
As you can see the image src changes based on whether highQuality is true or false.
I have a select tag with the two bool options, if I start on false and change it to true it updates the images to high quality sources, but if I set it back to false it seems to stay on High quality. So I'm thinking that this is a bad attempt at a vue if conditional.
is there a more "Vue" like way of writing this?
edit: extra code
DOM
<select v-model="highQuality">
<option value="true">High Quality</option>
<option value="false">Low Resolution</option>
</select>
JS
var app = new Vue({
el: '#app',
data: {
highQuality: false,
posts: [],
},
});
highQuality? Can you show some of its code?