vue-shopping | Vue商城,vue、webpack、vuex、es6、babel、sass、bootstrap等 | State Container library
kandi X-RAY | vue-shopping Summary
kandi X-RAY | vue-shopping Summary
Vue商城,vue、webpack、vuex、es6、babel、sass、bootstrap等
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-shopping
vue-shopping Key Features
vue-shopping Examples and Code Snippets
Community Discussions
Trending Discussions on vue-shopping
QUESTION
I am looking to bind some pictures to an img element from an array of objects. I can get the strings to go over to the html elements, but I am having trouble with the pictures. any help would be great. Here is my github account because I couldnt get the javascript to show up right on the template and didnt want it to be difficult to read.
...ANSWER
Answered 2017-Nov-22 at 00:07Try using :src="require(path/to/image)"
.
As a note.
:src=""
is the shorthand for v-bind:src=""
i think.
Like this example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-shopping
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page