diff --git a/src/App.svelte b/src/App.svelte index 77dcaaa..0465188 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -30,6 +30,10 @@ return json; }; + function SuperDuperFunction() { + wigets = JSON.parse(document.getElementById("text1").value); + } + let wigets = []; wigets = [ @@ -103,13 +107,12 @@
- - + {#each wigets as widget, i} {#if widget.widget === "input"} - + {/if} {/each}