Skip to content

Iteration

The <for> tag is used to iterate over an array. The content of the <for> tag will be evaluated once for each item of the array.

html
<for each="items" as="item">
  <div></div>
</for>
AttributesUse
each="…"Specifies which variable to iterate over.
as="…"Introduces a variable that holds the array item for each iteration.