Skip to content

Commit a05f684

Browse files
author
zhenyong
committed
update docs for new guard signature
1 parent bbabb8f commit a05f684

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)