Here I’m attempting to access previously JavaScript variables and the value being iterated over. Is this possible?
<App>
<JavaScript>
module.exports = {
list: [
{phrase: "hello"},
{phrase: "team"}
]
};
</JavaScript>
<WrapPanel Alignment="VerticalCenter">
<Each Items="{list}">
<JavaScript>
debug_log "list=" + list;
debug_log "phrase=" + phrase;
</JavaScript>
<Text Value="{phrase}" />
</Each>
</WrapPanel>
</App>