This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add initial documentation for router composables (#8895)
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: "onBeforeRouteLeave" | ||
description: The onBeforeRouteLeave composable allows registering a route guard within a component. | ||
--- | ||
|
||
# `onBeforeRouteLeave` | ||
|
||
The `onBeforeRouteLeave` composable adds a navigation guard that triggers whenever the component for the current location is about to be left. | ||
|
||
::ReadMore{link="https://router.vuejs.org/api/index.html#onbeforerouteleave"} | ||
:: |
11 changes: 11 additions & 0 deletions
11
docs/content/3.api/1.composables/on-before-route-update.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: "onBeforeRouteUpdate" | ||
description: The onBeforeRouteUpdate composable allows registering a route guard within a component. | ||
--- | ||
|
||
# `onBeforeRouteUpdate` | ||
|
||
The `onBeforeRouteUpdate` composable adds a navigation guard that triggers whenever the component for the current location is about to be updated. | ||
|
||
::ReadMore{link="https://router.vuejs.org/api/index.html#onbeforerouteupdate"} | ||
:: |