Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mateothegreat committed Oct 31, 2024
1 parent d49ef82 commit d72bab4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ All you need to do is define your routes and then use the `Router` component wit

To make a link, use the `route` directive with the `href` attribute such as `<a use:route href="/foo">foo</a>`.

### Methods

#### `goto(path: string)`

Navigates to the given path.

#### `query(key: string): string | null`

Returns the value of the query parameter for the given key or null if the key does not exist.

### Routes

You can simply use static paths like `/foo` or dynamic paths like `/foo/(.*?)` with regex.
Expand Down

0 comments on commit d72bab4

Please sign in to comment.