Nuxt/docs/3.api/3.utils/on-before-route-leave.md
Sébastien Chopin 3ec108493d
docs: simplify the docs directory (#18506)
* docs: simplify docs to only markdown

* Create nuxt-config.md

* chore: update

* chore: add readme
2023-01-25 10:41:41 +01:00

386 B

title description
onBeforeRouteLeave 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"} ::