Created
June 27, 2018 17:00
-
-
Save machinefriendly/f6cd25b1b32feaab6a0ab3fc6110ce07 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/veqodam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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