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
:
up.visit('/users')
The URL to visit.
See options for up.render()
.
A promise that fulfills with an up.RenderResult
once the destination was loaded and rendered.