Skip to content

Commit c910cc0

Browse files
committed
docs for exact-active-class
1 parent 96c778c commit c910cc0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

docs/en/api/options.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@
5353

5454
Globally configure `<router-link>` default active class. Also see [router-link](router-link.md).
5555

56+
### linkExactActiveClass
57+
58+
> 2.5.0+
59+
60+
- type: `string`
61+
62+
- default: `"router-link-exact-active"`
63+
64+
Globally configure `<router-link>` default active class for exact matches. Also see [router-link](router-link.md).
65+
5666
### scrollBehavior
5767

5868
- type: `Function`

docs/en/api/router-link.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,16 @@
115115

116116
Specify the event(s) that can trigger the link navigation.
117117

118+
- **exact-active-class**
119+
120+
> 2.5.0+
121+
122+
- type: `string`
123+
124+
- default: `"router-link-exact-active"`
125+
126+
Configure the active CSS class applied when the link is active with exact match. Note the default value can also be configured globally via the `linkExactActiveClass` router constructor option.
127+
118128
### Applying Active Class to Outer Element
119129

120130
Sometimes we may want the active class to be applied to an outer element rather than the `<a>` tag itself, in that case, you can render that outer element using `<router-link>` and wrap the raw `<a>` tag inside:

0 commit comments

Comments
 (0)