Closed Rukenshia closed 5 years ago
Not sure what is causing this issue. I'll look into it and am planning to update the alternate syntax for <For>
.
I have just started using Moon I am also getting this error...
This now works with the rewrite:
Moon({
root: "#root",
items: ["foo", "bar", "baz"],
view: `
<for={$item, $index} of={items}>
<p>{$item} {$index}</p>
</for>
`
});
Hi,
just found out that the syntax described in the docs does not work:
results in: