router-dom
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -125,3 +125,2 @@ import { listen } from "quicklink"; | ||
e.preventDefault(); | ||
const anchor = e.target; | ||
const hasData = anchor.getAttribute("data"); | ||
@@ -128,0 +127,0 @@ const hydroProp = replaceBars(hasData); |
{ | ||
"name": "router-dom", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "A lightweight router for everyone", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -29,6 +29,6 @@ # router-dom | ||
```html | ||
<!-- With base --> | ||
<base href="/.../" /> | ||
<a href="./about" data="about">About</a> | ||
<!-- href="about" without base --> | ||
<div data-outlet></div> | ||
@@ -59,3 +59,3 @@ ``` | ||
element: html`<h2>Drop a message on [...]</h2>`, | ||
beforeEnter: ({ from, to, state, params }) => ... | ||
beforeEnter: ({ from, to, state, params }) => ..., | ||
afterEnter: ({ from, to, state, params }) => ... | ||
@@ -76,15 +76,15 @@ } | ||
- Add a route object to the routes array. | ||
- Adds a route object to the routes array. | ||
### modifyRoute | ||
- Replace a route with a new one. | ||
- Replaces a route with a new one. | ||
### changeOptions | ||
- Replace the router options. | ||
- Replaces the router options. | ||
### getParams | ||
- Return the params as key-value pair. | ||
- Returns the params as key-value pair. | ||
@@ -94,2 +94,2 @@ ## To Do | ||
- Add tests | ||
- Nested routes | ||
- Add nested routes |
@@ -161,3 +161,2 @@ import { listen } from "quicklink"; | ||
e.preventDefault(); | ||
const anchor = e.target as HTMLAnchorElement; | ||
const hasData = anchor.getAttribute("data"); | ||
@@ -164,0 +163,0 @@ const hydroProp = replaceBars(hasData); |
18840
421