Hi,
I have an array of images in my router that would like to pass to my photo browser that i have in template page java script section. I can not figure how I can pass that array. I am adding images product array and then passing it to context.
router code:
{
componentUrl: ‘./pages/product.html’,
},
{
context: {
product: product,
}
}
In template I have tried:
I get error:
VM1695:5 Uncaught ReferenceError: product is not defined
I can loop over image array in html and that works fine.
{{#each product.images}}
{{/each}}
Help much appreciated.
Regards