Skip to content

vue3-routable


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.

Defined in

router-handler.ts:224

Released under the MIT License.