0👍
Vue’s syntax is unlike React’s where you use {object.url}
a lot.
In Vue, this is like this directly
<img :src="object.url" />
- [Vuejs]-How to dispatch event on Push receive using Workbox?
- [Vuejs]-Vuex/quasar – mutate state from firebase 9 on boot
0👍
In a Vue template, a colon :
prefixing an html attribute is a shorthand for v-bind. This allows you to use variables, computed etc. as attribute value instead of static values.
What you are trying is a react way which replace quotes around the attribute value with curly braces. But in Vue you can directly bind the variables without using curly braces.
Hence, It should be :
<img :src="object.url"/>
- [Vuejs]-What can i do to make my laravel and vue run on the same localhost / domain
- [Vuejs]-Pass value from vuejs view once and use common for all controllers in laravel?
Source:stackexchange.com