augmentLinks

fun augmentLinks(element: HTMLElement = document.documentElement)(source)

Augments all links (<a> elements) within the specified HTML element (or the entire document if no element is provided) to use the global router for navigation instead of performing a full page reload.

Parameters

element

The HTML element within which to augment links. Defaults to the entire document.