diff --git a/src/generators/nodes/Component.ts b/src/generators/nodes/Component.ts index 8039cc2a26..661bfd7d15 100644 --- a/src/generators/nodes/Component.ts +++ b/src/generators/nodes/Component.ts @@ -527,8 +527,8 @@ function mungeBinding(binding: Node, block: Block): Binding { let prop; if (contextual) { - obj = block.listNames.get(name); - prop = block.indexNames.get(name); + obj = `state.${block.listNames.get(name)}`; + prop = `state.${block.indexNames.get(name)}`; } else if (binding.value.type === 'MemberExpression') { prop = `[✂${binding.value.property.start}-${binding.value.property.end}✂]`; if (!binding.value.computed) prop = `'${prop}'`;