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

docs: add stub documentation for router composables #8895

Merged
merged 1 commit into from
Nov 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"}
::