Show images on next page.
This commit is contained in:
parent
75d48ed28b
commit
1ca46d0bf2
3 changed files with 117 additions and 11 deletions
15
static/js/next.js
Normal file
15
static/js/next.js
Normal 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; })
|
||||
});
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue