Skip to content

Commit 5ec3cdb

Browse files
authored
Merge pull request #700 from zhenyong/dev
update docs for new guard signature
2 parents 51967c7 + a05f684 commit 5ec3cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/api/route-object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ The route object can be found in multiple places:
1313
- Inside navigation guards as the first argument:
1414

1515
``` js
16-
router.beforeEach((route, redirect, next) => {
17-
// route here is a route object
16+
router.beforeEach((to, from, next) => {
17+
// to and from are both route objects
1818
})
1919
```
2020

0 commit comments

Comments
 (0)