]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: Update doc-block comment for beforeResolve (#1165) [skip ci]
authorn-gray <88853828+n-gray@users.noreply.github.com>
Fri, 22 Oct 2021 09:32:35 +0000 (04:32 -0500)
committerGitHub <noreply@github.com>
Fri, 22 Oct 2021 09:32:35 +0000 (11:32 +0200)
src/router.ts

index 7e0b7fc11230fe0c4830fc75a8e51c3fcc11a644..01e586610fa359fdda9fd782157857bf5ca0be97 100644 (file)
@@ -289,7 +289,7 @@ export interface Router {
    *
    * @example
    * ```js
-   * router.beforeEach(to => {
+   * router.beforeResolve(to => {
    *   if (to.meta.requiresAuth && !isAuthenticated) return false
    * })
    * ```