Guest User

Untitled

a guest
Jun 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <div class="main" id="vue-instance">
  2. <!-- this will be the DOM element we will mount our VueJs instance to -->
  3. Enter an image url:
  4. <input type="text" v-model="myimage">
  5.  
  6. <img class="insert" style="max-height:300px" v-bind:src="myimage">
  7. <a href="https://amazon.com" target="_blank">Link to the image</a>
  8. </div>
  9.  
  10. <a v-bind:href="'https://amazon.com/' + myimage" target="_blank">Link to the image</a>
  11.  
  12. <img class="insert" style="max-height:300px" v-show="myimage == null" v-bind:src="myimage">
Add Comment
Please, Sign In to add comment