Skip to content Skip to sidebar Skip to footer

Binding Img Src

I have an img tag in a Vue component with a binded src attribute to Vuex state. I am successfully updating that state object in V

Solution 1:

When attaching to bindings, this isn't needed and if I'm remembering right can cause issues like this.

Also your store structure looks like you have a module imageStore this would namepace of the imageDataURI element.

Try:

<img :src="$store.state.imageStore.imageDataURI">

Post a Comment for "Binding Img Src"