Skip to content

Instantly share code, notes, and snippets.

@tokchin
Created July 12, 2019 02:25
Show Gist options
  • Save tokchin/077e52b2e48acd180d8c774636df76f1 to your computer and use it in GitHub Desktop.
Save tokchin/077e52b2e48acd180d8c774636df76f1 to your computer and use it in GitHub Desktop.
<template>
<div id="app">
<app-item-grid :items="items"></app-item-grid>
</div>
</template>
<script>
import ItemGrid from './ItemGrid.vue'
import {getMyAssets} from '../js/web3_util.js'
export default {
name: 'app',
data () {
return {
items: []
}
},
mounted: async function(){
this.items = await getMyAssets().then(function(value){return value})
},
components: {
appItemGrid: ItemGrid
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment