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.
Parameters
Section titled “Parameters”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>.
Returns
Section titled “Returns”void