If applied on a link, Follows this link via AJAX and replaces the
<body> element with the response's
To only update a fragment instead of the entire page, see
<a href="/users" up-follow>User list</a>
You can also use
[up-follow] to turn an arbitrary element into a link.
In this case, put the link's destination into the
<span up-follow up-href="/foo/bar">Go</span>
Note that using any element other than
<a> will prevent users from
opening the destination in a new tab.
The HTTP method to use for the request.
The selector to replace if the server responds with a non-200 status code.
The selector to update when the original target was not found in the page.
The transition to use for morphing between the old and new elements.
The transition to use for morphing between the old and new elements when the server responds with a non-200 status code.
The destination URL to follow.
If omitted, the the link's
href attribute will be used.
A message that will be displayed in a cancelable confirmation dialog before the link is followed.
Whether to push an entry to the browser history when following the link.
Set this to
'false' to prevent the URL bar from being updated.
Set this to a URL string to update the history with the given URL.
Whether to restore the scroll position of all viewports within the response.