'I have been working ecomerce project and using bhs as a template.data can not be visible by using each loop of hbs

I am using node.js and mongodb for this project Wile using each loop and {{this.name}} it says that.. Access has been denied to resolve the property "name" because it is not an "own property" of its parent. You can add a runtime option to disable the check or this warning: When i have used {{log this}} the proper array of objects has printed.

This is the hbs code hbs view template The Array of data looks like [ { "_id": "621dc40fd67655c95f52a50d", "name": "Sweet fresh stawberry", "description": "Sweet and Fresh", "category": "fruit", "image": "1.jpg", "price": 29.45, "rating": 4, "id": "621dc40fd67655c95f52a50d" }, { "_id": "621dc40ed67655c95f52a50c", "name": "Brown eggs", "description": "Raw organic brown eggs", "category": "dairy", "image": "0.jpg", "price": 28.1, "rating": 4, "id": "621dc40ed67655c95f52a50c" }]



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source