We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26c0f16 commit de75721Copy full SHA for de75721
src/index.js
@@ -122,7 +122,7 @@ export default class VueRouter {
122
this.beforeHooks.push(fn)
123
}
124
125
- onResolve (fn: Function) {
+ beforeResolve (fn: Function) {
126
this.resolveHooks.push(fn)
127
128
types/router.d.ts
@@ -21,7 +21,7 @@ declare class VueRouter {
21
currentRoute: Route;
22
23
beforeEach (guard: NavigationGuard): void;
24
- onResolve (guard: NavigationGuard): void;
+ beforeResolve (guard: NavigationGuard): void;
25
afterEach (hook: (to: Route, from: Route) => any): void;
26
push (location: RawLocation, onComplete?: Function, onAbort?: Function): void;
27
replace (location: RawLocation, onComplete?: Function, onAbort?: Function): void;
0 commit comments