mirror of https://github.com/sveltejs/svelte
failing test for #1327
parent
01cdffa46e
commit
9ac0c40d65
@ -0,0 +1,9 @@
|
||||
import { Store } from '../../../../store.js';
|
||||
|
||||
export default {
|
||||
store: new Store(),
|
||||
|
||||
html: `
|
||||
<h1>Hello Brian!</h1>
|
||||
`
|
||||
};
|
@ -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>
|
Loading…
Reference in new issue