Edit this page

up.fragment up.visit(url, [options])
JavaScript function

Fetches this given URL with JavaScript and replaces the current layer's main element with a matching fragment from the server response.


This would replace the current page with the response for /users:



url string

The URL to visit.

[options] Object optional

See options for up.render().

Return value

A promise that fulfills with an up.RenderResult once the destination was loaded and rendered.