mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: add initial documentation for router composables (#8895)
This commit is contained in:
parent
e6351349c0
commit
3dd9271c09
11
docs/content/3.api/1.composables/on-before-route-leave.md
Normal file
11
docs/content/3.api/1.composables/on-before-route-leave.md
Normal file
@ -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
docs/content/3.api/1.composables/on-before-route-update.md
Normal file
11
docs/content/3.api/1.composables/on-before-route-update.md
Normal file
@ -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"}
|
||||
::
|
Loading…
Reference in New Issue
Block a user