mirror of https://github.com/sveltejs/svelte
Merge pull request #1493 from sveltejs/gh-1492
separate hasOutros from hasOutroMethodpull/1498/head
commit
607f96d861
@ -0,0 +1 @@
|
||||
foo
|
@ -0,0 +1,19 @@
|
||||
export default {
|
||||
data: {
|
||||
x: 1,
|
||||
y: false,
|
||||
},
|
||||
|
||||
html: `
|
||||
<span>1</span>
|
||||
`,
|
||||
|
||||
nestedTransitions: true,
|
||||
|
||||
test(assert, component, target) {
|
||||
component.set({ x: 2 });
|
||||
assert.htmlEqual(target.innerHTML, `
|
||||
<span>2</span>
|
||||
`);
|
||||
},
|
||||
};
|
@ -0,0 +1,20 @@
|
||||
{#if y}
|
||||
<Foo/>
|
||||
{:else}
|
||||
<span>{x}</span>
|
||||
{/if}
|
||||
|
||||
<script>
|
||||
export default {
|
||||
components: {
|
||||
Foo: './Foo.html'
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
x: 'x',
|
||||
y: false
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in new issue