You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we use each for an array of objects and wants to access values outside that array of object, then this will throw an error, stating that the property is undefined. E,g, in my case I have the following object, which is causing an issue
Taking the above example, we use the following code in the handlebar, but it will not let us access the value. {{#each arrayOfObjects}} {{name}} is trying to access the value {{valueToAccess}}, which will return undefined instead of test. {{/each}}
The text was updated successfully, but these errors were encountered:
If we use each for an array of objects and wants to access values outside that array of object, then this will throw an error, stating that the property is undefined. E,g, in my case I have the following object, which is causing an issue
{ valueToAccess: "test", arrayOfObjects: [ {name: "Tom", ...}, {name: "Jerry", ...}, ...] }
Taking the above example, we use the following code in the handlebar, but it will not let us access the value.
{{#each arrayOfObjects}} {{name}} is trying to access the value {{valueToAccess}}, which will return undefined instead of test. {{/each}}
The text was updated successfully, but these errors were encountered: