Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs: add initial documentation for router composables (#8895)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Nov 10, 2022
1 parent e635134 commit 3dd9271
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/content/3.api/1.composables/on-before-route-leave.md
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 docs/content/3.api/1.composables/on-before-route-update.md
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"}
::

0 comments on commit 3dd9271

Please sign in to comment.