RouterLink
RouterLink component renders anchor tag (<a>
) for routing both within the SPA and to external locations.
Props
Parameter | Type |
---|---|
to | Url | (resolve: RouterResolve) => Url |
query | QuerySource | undefined |
hash | string | undefined |
replace | boolean | undefined |
prefetch | boolean | PrefetchConfigOptions | undefined |
Slots
Default
Scope Property | Type |
---|---|
resolved | string |
isMatch | boolean |
isExactMatch | boolean |
isExternal | boolean |
Notes
RouterLink applies class names for styling
router-link--match
-> route is current route or ancestor of current routerouter-link--exact-match
-> route is current route