Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to pass for loop value to its component

I want to access the 'photo' from the for loop

I also try for, for in or for of but it did not work.

getPhoto() {
for (let c = 0; c < this.gallery.length; c++) {
  console.log(this.gallery[c].thumbnailUrl);
}

}`

ERROR TypeError: Cannot read property 'length' of undefined

Comments