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