mirror of https://github.com/sveltejs/svelte
parent
2e4b65af5a
commit
67d4d60c3a
@ -0,0 +1,3 @@
|
|||||||
|
{#each things as thing (thing)}
|
||||||
|
<div></div>
|
||||||
|
{/each}
|
@ -0,0 +1,13 @@
|
|||||||
|
export default {
|
||||||
|
nestedTransitions: true,
|
||||||
|
|
||||||
|
data: {
|
||||||
|
x: true,
|
||||||
|
things: ['a', 'b']
|
||||||
|
},
|
||||||
|
|
||||||
|
test(assert, component, target, window, raf) {
|
||||||
|
component.set({ x: false });
|
||||||
|
assert.htmlEqual(target.innerHTML, '');
|
||||||
|
},
|
||||||
|
};
|
@ -0,0 +1,9 @@
|
|||||||
|
{#if x}
|
||||||
|
<Widget :things/>
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
components: { Widget: './Widget.html' }
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue