]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: mention both `useRoute` and `useRouter` functions (#1680)
authorNazaré da Piedade <31008635+nazarepiedady@users.noreply.github.com>
Wed, 1 Feb 2023 09:15:50 +0000 (09:15 +0000)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 15 Feb 2023 08:52:45 +0000 (09:52 +0100)
packages/docs/guide/advanced/composition-api.md

index 09671c025c8d7d5be4b06c0e4e0ee95cf5f4e0c0..7faf5031bda3bd411ee62cfb2fac6ea49a40218f 100644 (file)
@@ -9,7 +9,7 @@ The introduction of `setup` and Vue's [Composition API](https://v3.vuejs.org/gui
 
 ## Accessing the Router and current Route inside `setup`
 
-Because we don't have access to `this` inside of `setup`, we cannot directly access `this.$router` or `this.$route` anymore. Instead we use the `useRouter` function:
+Because we don't have access to `this` inside of `setup`, we cannot directly access `this.$router` or `this.$route` anymore. Instead we use the `useRouter` and `useRoute` functions:
 
 ```js
 import { useRouter, useRoute } from 'vue-router'