This commit is contained in:
2020-06-24 11:00:41 +02:00
parent 0ab51bea2a
commit 42176ca4fd
16 changed files with 484 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<script context="module">
export async function preload(page, session) {
return page.params
}
</script>
<script>
import Todo from '../../components/Todo.svelte'
import { todos } from '../../api'
export let id
$: todo = $todos.find(todo => todo._id === id)
</script>
{#if todo}
<Todo {todo} />
{/if}