mirror of https://github.com/sveltejs/svelte
parent
897254b7ae
commit
d9dd54cfcb
@ -0,0 +1,5 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<div>true</div>
|
||||||
|
`,
|
||||||
|
};
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
import { setContext } from 'svelte';
|
||||||
|
let a = {};
|
||||||
|
let b = setContext('foo', a);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div>{a === b}</div>
|
||||||
Loading…
Reference in new issue