Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rehhouari authored Jan 7, 2024
1 parent ad0bc11 commit f31281f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,9 @@ window.PineconeRouter.add(path, options)
```

- path: string, the route's path.
- options: array of options that can be anything for example: `{handlers: [], view: '/home.html'}`
- options: array of options: `{handlers: [], template: '/home.html'}`

Note that by adding handlers this way you wont have access to the `this` of the alpine.js component if the handler is part of one.

**Removing a route**:

Expand Down

0 comments on commit f31281f

Please sign in to comment.