Utilizing the Flickr API, I am receiving feed images from their platform.
In my Vue application, I have a computed property called filteredImages
:
computed: {
filteredImages: async function() {
return axios.get('https://api.flickr.com/services/feeds/photos_public.gne?format=json&tags=' + this.search + '&nojsoncallback=1')
.then(function (response) {
return response.data.items;
})
}
},
When I use a console log to check the response.data.items
, it correctly shows the expected result set. However, when I try to display it in HTML, it shows as [object Promise]
.
For a demonstration, feel free to view this Pen.
Any insights on why this might be happening?