Skip to content

Commit

Permalink
minor edits in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxNB committed Apr 27, 2020
1 parent eae4995 commit 9e40c0c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ If you want have code-splitting and load components only when page requested, ma
And use it when you need lazy loaded component in your routes:

```html
<Route path="/lazypage"><Lazy component={()=>import('./mypage.svelte')}/></Route>
<Route path="/lazypage">
<Lazy component={()=>import('./mypage.svelte')}/>
</Route>
```

### Transitions
Expand All @@ -346,9 +348,8 @@ In case of any transiton when path changes, make component like this:
import {fade} from 'svelte/transition';
</script>

{#each '_' as _($router.path)}
{#each '_' as _($router.path)}{$router.path,''}
<div in:fade="{{ duration: 700}}">
{$router.path,''}
<slot></slot>
</div>
{/each}
Expand Down

0 comments on commit 9e40c0c

Please sign in to comment.