Added
x-for
directive with:key
binding on<template>
tag. This uses a similar strategy asx-if
(appending real dom nodes after the template tag, and re-evaluating them when data updates)
<template x-for="item in items" :key="item">
<div x-text="item"></div>
</template>
Fixed
- Non-root x-data elements are now being initialized by the root mutation observer.