Created
November 11, 2020 13:27
-
-
Save ricardomatias/e0a9c589fef65ee799d16f80866b69fd to your computer and use it in GitHub Desktop.
Revisions
-
ricardomatias revised this gist
Nov 11, 2020 . 2 changed files with 2 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ <script> export let text = null; let showText = false; setTimeout(() => (showText = true), 1000); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,8 +8,5 @@ new Hello({ }) new Hello({ target: document.body }) -
ricardomatias created this gist
Nov 11, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <script> export let text; let showText = false; setTimeout(() => (showText = true), 1000); </script> {#if text && showText} <p> {text} </p> {/if} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ import Hello from './Hello.svelte'; new Hello({ target: document.body, props: { text: 'foo bar' } }) new Hello({ target: document.body, props: { text: 'bar' } })