I need to nest two #each loops and access a controller property on the inner loop.
In Handlebars:
{{#with controller as self}}
{{#each someArray}}
{{#each anotherArrayInsideTheOtherOne}}
{{somePropertyOnTheItem}}
{{self.somePropertyOnTheController}}
{{/each}}
{{/each}}
{{/with}}
The first #each renders correctly, the nested #each does not. If I remove the #with block and use #each-in loops, the same thing happens. If I remove the #with-as block and use #each loops, it works correctly but I don’t have access to the property on the controller.
What gives?