Skip to content

Commit

Permalink
Minor updates to sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
ItalyPaleAle committed May 14, 2019
1 parent 4c7b4cf commit 6dde939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ Current path: {$location}

<script>
// Import the router component
// Normally, this would be import: `import Router from 'svelte-spa-router'
// Normally, this would be import: `import Router from 'svelte-spa-router'`
import Router from '../../router.svelte'
// Import the "link" action and the methods to control history programmatically from the same module, as well as the location store
import {link, push, pop, replace, location} from '../../router.svelte'
// Import the "active" action
// Normally, this would be import: `import active from 'svelte-spa-router/active'
// Normally, this would be import: `import active from 'svelte-spa-router/active'`
import active from '../../active'
// Import the list of routes
Expand Down
2 changes: 1 addition & 1 deletion example/src/routes/Name.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h2>Hi there!</h2>
<p>Your name is: <b>{params.first}</b> <b>{#if params.last} {params.last}{/if}</b></p>
<p>Your name is: <b>{params.first}</b> <b>{#if params.last}{params.last}{/if}</b></p>
<p><em>Hint:</em> Try changing the URL and add your name, e.g. <code>/hello/jane/doe</code></p>

<script>
Expand Down

0 comments on commit 6dde939

Please sign in to comment.