vue3-routable / routeMatches
Function: routeMatches()
routeMatches(
route
,expression
):boolean
Checks if the given route matches the provided route match expression(s).
Parameters
route
RouteBaseInfo
The route to check.
expression
The route match expression to compare against.
RouteMatchExpression
| RouteMatchExpression
[]
Returns
boolean
- Returns true if the route matches any of the expressions, otherwise returns false.