Skip to content

Commit cbb552c

Browse files
docs: exact-path
Co-authored-by: Eduardo San Martin Morote <[email protected]>
1 parent 74f106c commit cbb552c

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/api/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,27 @@ If you add a `target="_blank"` to your `a` element, you must omit the `@click="n
149149

150150
Check out more examples explaining active link class [live](https://jsfiddle.net/8xrk1n9f/).
151151

152+
### exact-path
153+
154+
> New in 3.5.0
155+
156+
- type: `boolean`
157+
- default: `false`
158+
159+
Allows matching only using the `path` section of the url, effectively ignoring the `query` and the `hash` sections.
160+
161+
```html
162+
<!-- this link will also be active at `/search?page=2` or `/search#filters` -->
163+
<router-link to="/search" exact-path> </router-link>
164+
```
165+
166+
### exact-path-active-class
167+
168+
- type: `string`
169+
- default: `"router-link-exact-path-active"`
170+
171+
Configure the active CSS class applied when the link is active with exact path match. Note the default value can also be configured globally via the `linkExactPathActiveClass` router constructor option.
172+
152173
### event
153174

154175
- type: `string | Array<string>`

0 commit comments

Comments
 (0)