Add test case for computed bind

pull/3079/head
Bryan Terce 6 years ago
parent fee4d351e1
commit 8169e1d90d
No known key found for this signature in database
GPG Key ID: DF2E2829CA6E5BF4

@ -0,0 +1,8 @@
export default {
skip_if_ssr: true,
html: `
<div>foo</div>
<div>has foo: true</div>
`
};

@ -0,0 +1,9 @@
<script>
import Foo from './Foo.svelte';
export let foo = {};
</script>
<Foo bind:this={foo['computed']}/>
<div>
has foo: {!!foo.computed}
</div>
Loading…
Cancel
Save