Created
June 27, 2018 17:00
-
-
Save machinefriendly/f6cd25b1b32feaab6a0ab3fc6110ce07 to your computer and use it in GitHub Desktop.
Revisions
-
machinefriendly created this gist
Jun 27, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,53 @@ <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 hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ 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)) } })