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