Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

RouteMatch

interfaz

Resultado de matchRoute: la ruta y sus parámetros ya decodificados.

ts
import type { RouteMatch } from "@meekojs/meeko/framework";

Source code src/app/runtime/router.ts:103

Declaración #

ts
interface RouteMatch {
	readonly route: RouteRecord
	readonly params: Readonly<Record<string, string>>
}

Example #

ts
import { matchRoute } from "@meekojs/meeko/framework";

const match = matchRoute(routes, "/users/42");
if (match) console.log(match.route.id, match.params.id); // "/users/[id]" "42"

Propiedades #

route #

propiedad sólo lectura

readonly route: RouteRecord

Ruta que coincide.

params #

propiedad sólo lectura

readonly params: Readonly<Record<string, string>>

Parámetros de la URL por nombre; un catch-all une sus segmentos con /.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/app/runtime/router.ts