Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // then
- this.axios.get("https://blockchain.info/ticker")
- .then(result => {
- console.log(result);
- }).catch(err => {
- console.error(err);
- });
- // await
- try {
- let result = await this.axios.get("https://blockchain.info/ticker");
- console.log(result);
- } catch(err) {
- console.error(err);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement