Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="main" id="vue-instance">
- <!-- this will be the DOM element we will mount our VueJs instance to -->
- Enter an image url:
- <input type="text" v-model="myimage">
- <img class="insert" style="max-height:300px" v-bind:src="myimage">
- <a href="https://amazon.com" target="_blank">Link to the image</a>
- </div>
- <a v-bind:href="'https://amazon.com/' + myimage" target="_blank">Link to the image</a>
- <img class="insert" style="max-height:300px" v-show="myimage == null" v-bind:src="myimage">
Add Comment
Please, Sign In to add comment