mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-11 19:04:30 +00:00
10 lines
198 B
Svelte
10 lines
198 B
Svelte
<script>
|
|
import { stores } from '@sapper/app';
|
|
const { session } = stores();
|
|
</script>
|
|
|
|
<h1>{$session.title}</h1>
|
|
|
|
<button on:click="{() => session.set({ title: 'changed' })}">
|
|
click me
|
|
</button> |