site: clarify file -> module in <svelte:self> tutorial (#5171)

pull/7738/head
João Paulo 5 years ago committed by GitHub
parent 8e9022e140
commit 6036366cde

@ -14,7 +14,7 @@ It's useful for things like this folder tree view, where folders can contain *ot
{/if} {/if}
``` ```
...but that's impossible, because a file can't import itself. Instead, we use `<svelte:self>`: ...but that's impossible, because a module can't import itself. Instead, we use `<svelte:self>`:
```html ```html
{#if file.type === 'folder'} {#if file.type === 'folder'}
@ -22,4 +22,4 @@ It's useful for things like this folder tree view, where folders can contain *ot
{:else} {:else}
<File {...file}/> <File {...file}/>
{/if} {/if}
``` ```

Loading…
Cancel
Save