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
* * `"hash"`: uses the URL hash for routing. Works in all Vue-supported browsers, including those that do not support HTML5 History API.
9
-
* * `"history"`: requires HTML5 History API and server config. See HTML5 History Mode.
10
-
* * `"abstract"`: works in all JavaScript environments, e.g. server-side with Node.js. **The router will automatically be forced into this mode if no browser API is present.**
@@ -34,14 +29,7 @@ export declare class VueRouter {
34
29
*/
35
30
options: RouterOptions
36
31
/**
37
-
* Configure the router mode.
38
-
*
39
-
* default: `"hash"` (in browser) | `"abstract"` (in Node.js)
40
-
*
41
-
* available values: `"hash" | "history" | "abstract"`
42
-
* * `"hash"`: uses the URL hash for routing. Works in all Vue-supported browsers, including those that do not support HTML5 History API.
43
-
* * `"history"`: requires HTML5 History API and server config. See HTML5 History Mode.
44
-
* * `"abstract"`: works in all JavaScript environments, e.g. server-side with Node.js. **The router will automatically be forced into this mode if no browser API is present.**
32
+
* Configured mode when creating the Router instance.
45
33
*/
46
34
mode: RouterMode
47
35
/**
@@ -102,7 +90,7 @@ export declare class VueRouter {
102
90
push(to: RawLocation): Promise<Route>
103
91
/**
104
92
* Programmatically navigate to a new URL by pushing an entry in the history stack.
105
-
*
93
+
*
106
94
* @param to Route location to navigate to
107
95
* @param onComplete Navigation success callback
108
96
* @param onAbort Navigation aborted callback
@@ -122,7 +110,7 @@ export declare class VueRouter {
122
110
/**
123
111
* Programmatically navigate to a new URL by replacing the current entry in
124
112
* the history stack.
125
-
*
113
+
*
126
114
* @param to Route location to navigate to
127
115
* @param onComplete Navigation success callback
128
116
* @param onAbort Navigation aborted callback
@@ -154,7 +142,7 @@ export declare class VueRouter {
* This method queues a callback to be called when the router has completed the initial navigation, which means it has resolved all async enter hooks and async components that are associated with the initial route.
157
-
*
145
+
*
158
146
* This is useful in server-side rendering to ensure consistent output on both the server and the client.
159
147
* @param cb onReady callback.
160
148
* @param errorCb errorCb will be called when the initial route resolution runs into an error (e.g. failed to resolve an async component).
@@ -187,12 +175,12 @@ export declare class VueRouter {
187
175
*/
188
176
addRoute(route: RouteConfig): void
189
177
/**
190
-
* Get the list of all the active route records.
178
+
* Get the list of all the active route records.
191
179
*/
192
180
getRoutes(): RouteRecordPublic[]
193
181
194
182
/**
195
-
*
183
+
*
196
184
* @param to Route location
197
185
* @param current current is the current Route by default (most of the time you don't need to change this)
198
186
* @param append allows you to append the path to the `current` route (as with `router-link`)
@@ -230,7 +218,7 @@ export declare class VueRouter {
230
218
231
219
/**
232
220
* Enumeration with all possible types for navigation failures.
233
-
*
221
+
*
234
222
* Can be passed to {@link isNavigationFailure} to check for specific failures.
* default: `"hash"` (in browser) | `"abstract"` (in Node.js)
294
-
*
282
+
*
295
283
* available values: `"hash" | "history" | "abstract"`
296
-
* * `"hash"`: uses the URL hash for routing. Works in all Vue-supported browsers, including those that do not support HTML5 History API.
297
-
* * `"history"`: requires HTML5 History API and server config. See HTML5 History Mode.
298
-
* * `"abstract"`: works in all JavaScript environments, e.g. server-side with Node.js. **The router will automatically be forced into this mode if no browser API is present.**
284
+
* - `"hash"`: uses the URL hash for routing. Works in all Vue-supported browsers, including those that do not support HTML5 History API.
285
+
* - `"history"`: requires HTML5 History API and server config. See HTML5 History Mode.
286
+
* - `"abstract"`: works in all JavaScript environments, e.g. server-side with Node.js. **The router will automatically be forced into this mode if no browser API is present.**
0 commit comments