Skip to content

persistScroll

persistScroll(name?): void

Defined in: route.ts:398

Restore and store the vertical and horizontal scroll position for the parent element to the page state.

string = "main"

A unique (within this page) name for this scrollable element. Defaults to ‘main’.

The scroll position will be persisted in route.aux.scroll.<name>.

void