You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/essentials/navigation.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -14,34 +14,34 @@ To navigate to a different URL, use `router.push`. This method pushes a new entr
14
14
15
15
This is the method called internally when you click a `<router-link>`, so clicking `<router-link :to="...">` is the equivalent of calling `router.push(...)`.
16
16
17
-
| Declarative | Programmatic |
18
-
|-------------|--------------|
17
+
| Declarative | Programmatic|
18
+
|------------------------- |------------------ |
19
19
|`<router-link :to="...">`|`router.push(...)`|
20
20
21
21
The argument can be a string path, or a location descriptor object. Examples:
**Note**: `params` are ignored if a `path` is provided, which is not the case for `query`, as shown in the example above. Instead, you need to provide the `name` of the route or manually specify the whole `path` with any parameter:
The same rules apply for the `to` property of the `router-link` component.
@@ -54,8 +54,8 @@ In 2.2.0+, optionally provide `onComplete` and `onAbort` callbacks to `router.pu
54
54
55
55
It acts like `router.push`, the only difference is that it navigates without pushing a new history entry, as its name suggests - it replaces the current entry.
0 commit comments