Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions articles/flow/routing/navigation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ Compared to [classname]`String` versions, this avoids having to generate the rou

In the browser, the [methodname]`navigate()` method triggers a location update and the addition of a new history state entry, but doesn't issue a full page reload.

*Example*: Navigation to the `company` route target when clicking a button:
*Example*: Navigation to the `UserEditor` view when clicking a button:

[source,java]
----
Button button = new Button("Navigate to company");
button.addClickListener(e ->
button.getUI().ifPresent(ui ->
ui.navigate("company"))
ui.navigate(UserEditor.class))
);
----

Expand Down
Loading