vue-shopping-cart | vue2 购物车入门项目 | State Container library
kandi X-RAY | vue-shopping-cart Summary
kandi X-RAY | vue-shopping-cart Summary
vue2 购物车入门项目
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-cart
vue-shopping-cart Key Features
vue-shopping-cart Examples and Code Snippets
Community Discussions
Trending Discussions on vue-shopping-cart
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-cart
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