Skip to content

@vowel.to/client v0.1.2-393


@vowel.to/client / index / RouterAdapter

Interface: RouterAdapter

Defined in: lib/vowel/types/types.ts:24

Router adapter interface for navigation

Deprecated

Use NavigationAdapter instead for the new dual-adapter architecture

Methods

ts
navigate(path): any;

Defined in: lib/vowel/types/types.ts:28

Navigate to a path

Parameters

ParameterType
pathstring

Returns

any


getCurrentPath()

ts
getCurrentPath(): string;

Defined in: lib/vowel/types/types.ts:33

Get current path

Returns

string


getContext()?

ts
optional getContext(): any;

Defined in: lib/vowel/types/types.ts:38

Optional: Get router-specific context

Returns

any


getRoutes()?

ts
optional getRoutes(): VowelRoute[];

Defined in: lib/vowel/types/types.ts:43

Optional: Get available routes from the router

Returns

VowelRoute[]