Show images on next page.

This commit is contained in:
Edward Betts 2019-09-29 19:00:59 +01:00
parent 75d48ed28b
commit 1ca46d0bf2
3 changed files with 117 additions and 11 deletions

15
static/js/next.js Normal file
View file

@ -0,0 +1,15 @@
var app = new Vue({
el: '#app',
data: {
other_props: other_props,
},
created() {
this.other_props.forEach((prop) => {
var url = prop.image_lookup;
fetch(url)
.then((res) => res.json())
.then((data) => { prop.images = data.items; })
});
}
});