Last active
January 7, 2017 20:36
-
-
Save zmts/da2453fbe2c6a23ef40960d6dbfbd42c to your computer and use it in GitHub Desktop.
Add image from array Vue js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- something like this --> | |
<img v-if="someObject.someArray[0].image" :src="someObject.someArray[0].image"/> | |
<!-- or this --> | |
<img v-if="item.content[0]" v-bind:src="item.content[0].cardurl"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment