]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: typo
authorEduardo San Martin Morote <posva@users.noreply.github.com>
Mon, 14 Dec 2020 21:57:24 +0000 (22:57 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Dec 2020 21:57:24 +0000 (22:57 +0100)
docs/guide/advanced/navigation-failures.md

index e5e096f7c3d7d3a9d5f44d3373d1625ee1e6d176..e2ae0fc8ddb00ae6336fa950279f907f90d741e6 100644 (file)
@@ -71,7 +71,7 @@ All navigation failures expose `to` and `from` properties to reflect the current
 
 ```js
 // trying to access the admin page
-router.push('/admin').catch(failure => {
+router.push('/admin').push(failure => {
   if (isNavigationFailure(failure, NavigationFailureType.redirected)) {
     failure.to.path // '/admin'
     failure.from.path // '/'