-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path+page.svelte
32 lines (25 loc) · 832 Bytes
/
+page.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<script>
import { page } from "$app/stores";
import TestArrayComponent from "$lib/TestArrayComponent.svelte";
import TestPropComponent from "$lib/TestPropComponent.svelte";
import TestFunctionComponent from "$lib/TestFunctionComponent.svelte";
export let data;
</script>
<h1>Prop Object</h1>
<p />
<TestPropComponent exampleProp={data.examplePropObject} />
<h1>Prop Class</h1>
<p />
<TestPropComponent exampleProp={data.examplePropClass} />
<h1>Function Object</h1>
<p />
<TestFunctionComponent exampleProp={data.exampleFunctionObject} />
<h1>Function Class</h1>
<p />
<TestFunctionComponent exampleProp={data.exampleFunctionClass} />
<h1>Array Object</h1>
<p />
<TestArrayComponent arrayProp={data.examplePropObjectArray} />
<h1>Array Class</h1>
<p />
<TestArrayComponent arrayProp={data.examplePropClassArray} />