Skip to content

Commit

Permalink
fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxNB committed May 26, 2020
1 parent df439ff commit 0642b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ There are two ways to get parameters in nested component:
<!-- Hello.svelte-->
<script>
import {router} from 'tinro';
let params = router.getParams();
let params = router.params();
</script>

<h1>Hello, {params.name}!</h1>
Expand Down Expand Up @@ -295,7 +295,7 @@ You can import `router` object from the `tinro` package:
### `router.goto(href)`
Programaticly change the URL of current page.

### `router.getParams()`
### `router.params()`
Will return object with parameters if there are spcified in the path of current route. Will return `{}` if there no parameters in the URL.

### `router.subscribe(func)`
Expand Down

0 comments on commit 0642b36

Please sign in to comment.