Skip to content

Commit 7346720

Browse files
committed
fix gaurd example outdated comments
1 parent ab215a8 commit 7346720

File tree

1 file changed

+6
-4
lines changed
  • examples/navigation-guards

1 file changed

+6
-4
lines changed

examples/navigation-guards/app.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ const Bar = { template: '<div>bar</div>' }
99

1010
/**
1111
* Signatre of all route guards:
12-
* @param {Route} route
13-
* @param {Function} next - confirm the navigation
14-
* @param {Function} redirect - cancel and redirect to another route
15-
* @param {Function} abort - abort the navigation
12+
* @param {Route} to
13+
* @param {Route} from
14+
* @param {Function} next
15+
*
16+
* See http://router.vuejs.org/en/advanced/navigation-guards.html
17+
* for more details.
1618
*/
1719
function guardRoute (to, from, next) {
1820
if (window.confirm(`Navigate to ${to.path}?`)) {

0 commit comments

Comments
 (0)