Last active
April 18, 2019 14:12
-
-
Save magyarn/800473d372a4973e1dbc04bb2e558a7c to your computer and use it in GitHub Desktop.
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
<template> | |
... | |
</template> | |
<script> | |
import flickr from '../flickr.js' | |
export default { | |
name: 'imageDetail', | |
props: { | |
id: String, | |
}, | |
created() { | |
this.fetchImageInfo() | |
this.fetchImageSizes() | |
}, | |
data() { | |
return { | |
imageInfo: null, | |
} | |
}, | |
computed: { | |
... | |
}, | |
methods: { | |
... | |
fetchImageSizes() { | |
return flickr('photos.getSizes', { photo_id: this.id }).then(response => { | |
console.log(response) | |
}) | |
} | |
} | |
} | |
</script> | |
<style> | |
... | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment