@@ -53,8 +53,6 @@ Add a new [route record](../index.md#RouteRecordRaw) as the child of an existing
53
53
54
54
▸ (): ` void `
55
55
56
- Add a new [ route record] ( ../index.md#RouteRecordRaw ) as the child of an existing route.
57
-
58
56
##### Returns
59
57
60
58
` void `
@@ -75,8 +73,6 @@ Add a new [route record](../index.md#RouteRecordRaw) to the router.
75
73
76
74
▸ (): ` void `
77
75
78
- Add a new [ route record] ( ../index.md#RouteRecordRaw ) to the router.
79
-
80
76
##### Returns
81
77
82
78
` void `
@@ -104,25 +100,10 @@ a function that removes the registered hook
104
100
105
101
▸ (): ` void `
106
102
107
- Add a navigation hook that is executed after every navigation. Returns a
108
- function that removes the registered hook.
109
-
110
103
##### Returns
111
104
112
105
` void `
113
106
114
- a function that removes the registered hook
115
-
116
- ** ` Example ` **
117
-
118
- ``` js
119
- router .afterEach ((to , from , failure ) => {
120
- if (isNavigationFailure (failure)) {
121
- console .log (' failed navigation' , failure)
122
- }
123
- })
124
- ```
125
-
126
107
** ` Example ` **
127
108
128
109
``` js
@@ -167,9 +148,6 @@ function that removes the registered guard.
167
148
168
149
▸ (): ` void `
169
150
170
- Add a navigation guard that executes before any navigation. Returns a
171
- function that removes the registered guard.
172
-
173
151
##### Returns
174
152
175
153
` void `
@@ -199,25 +177,10 @@ a function that removes the registered guard
199
177
200
178
▸ (): ` void `
201
179
202
- Add a navigation guard that executes before navigation is about to be
203
- resolved. At this state all component have been fetched and other
204
- navigation guards have been successful. Returns a function that removes the
205
- registered guard.
206
-
207
180
##### Returns
208
181
209
182
` void `
210
183
211
- a function that removes the registered guard
212
-
213
- ** ` Example ` **
214
-
215
- ``` js
216
- router .beforeResolve (to => {
217
- if (to .meta .requiresAuth && ! isAuthenticated) return false
218
- })
219
- ```
220
-
221
184
** ` Example ` **
222
185
223
186
``` js
@@ -332,12 +295,6 @@ is required to render a route.
332
295
333
296
▸ (): ` void `
334
297
335
- Adds an error handler that is called every time a non caught error happens
336
- during navigation. This includes errors thrown synchronously and
337
- asynchronously, errors returned or passed to ` next ` in any navigation
338
- guard, and errors occurred when trying to resolve an async component that
339
- is required to render a route.
340
-
341
298
##### Returns
342
299
343
300
` void `
0 commit comments