JSFiddle - React, Tailwind, and code Playground
by Simon Herteby
HTML
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<div id="vue">
<img v-if="imageLink.result" :src="'data:image/png;base64,' + imageLink.result">
</div>
JavaScript
new Vue({
el: '#vue',
data() {
return {
imageLink: {}
}
},
created() {
this.$http.get('https://raw.githubusercontent.com/izinga/UI_DEMO/master/json/project_image.json').then(response => {
this.imageLink = JSON.parse(response.data);
console.log(this.imageLink)
})
}
})