<code>backdrop() {
store.movieList.forEach(element => {
return element.backdrop_path;
});
},
backdropImageUrl() {
let imageSrc = store.imgURL + this.backdrop();
return imageSrc;
}
</code>
<code>backdrop() {
store.movieList.forEach(element => {
return element.backdrop_path;
});
},
backdropImageUrl() {
let imageSrc = store.imgURL + this.backdrop();
return imageSrc;
}
</code>
backdrop() {
store.movieList.forEach(element => {
return element.backdrop_path;
});
},
backdropImageUrl() {
let imageSrc = store.imgURL + this.backdrop();
return imageSrc;
}
I’m trying to add the path of an image that is inside an array in an api to a link which will be placed inside the src of an img, but, when I put backdrop() inside the backdropImageUrl method it gives me undefined
New contributor
Diabo_ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.