N
Novu2y ago
empe

Access a variables outside of {{each}} method

I would like to transmit a payload to my layout: { a: 'a', arr: [] }. While iterating through the 'arr' using {{each arr}}, I intend to access the 'a' element. However, the step variables seem to assume that I should have a property on every element of the array. How can I achieve this?
6 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
empe
empeOP2y ago
No description
empe
empeOP2y ago
@jondumea99 Thank you!
Pawan Jain
Pawan Jain2y ago
Hi @starlorddude Are you able to access outer element of each context
empe
empeOP2y ago
@jondumea99
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?