0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

failing test for #1327

This commit is contained in:
Rich Harris 2018-04-30 21:01:24 -04:00
parent 01cdffa46e
commit 9ac0c40d65
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import { Store } from '../../../../store.js';
export default {
store: new Store(),
html: `
<h1>Hello Brian!</h1>
`
};

View File

@ -0,0 +1,10 @@
<h1>Hello {$name}!</h1>
<script>
export default {
oncreate() {
this.store.set({ user: { name: 'Brian' } });
this.store.compute('name', ['user'], user => user && user.name);
}
};
</script>