Skip to content

Instantly share code, notes, and snippets.

@machinefriendly
Created June 27, 2018 17:00
Show Gist options
  • Save machinefriendly/f6cd25b1b32feaab6a0ab3fc6110ce07 to your computer and use it in GitHub Desktop.
Save machinefriendly/f6cd25b1b32feaab6a0ab3fc6110ce07 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<div id="app">
{{ info }}
</div>
<script id="jsbin-javascript">
new Vue({
el: '#app',
data () {
return {
info: null
}
},
mounted () {
axios
.get('https://api.coindesk.com/v1/bpi/currentprice.json')
// .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
.then(response => (this.info = response))
}
})
</script>
<script id="jsbin-source-javascript" type="text/javascript">
new Vue({
el: '#app',
data () {
return {
info: null
}
},
mounted () {
axios
.get('https://api.coindesk.com/v1/bpi/currentprice.json')
// .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
.then(response => (this.info = response))
}
})</script></body>
</html>
new Vue({
el: '#app',
data () {
return {
info: null
}
},
mounted () {
axios
.get('https://api.coindesk.com/v1/bpi/currentprice.json')
// .get('https://script.google.com/macros/s/AKfycbxQoO95zRAax0HBEvTilC6Jw0yXJAdRQHlcwGOKR_-eW9ox3Xw/exec?kw=apple&batch=2&max=10&option=0')
.then(response => (this.info = response))
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment