mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs: fix typo in programmatic navigation (#5298)
Co-authored-by: Damian <48835293+DamianGlowala@users.noreply.github.com>
This commit is contained in:
parent
f5dca6245d
commit
7c2f96e5c0
@ -359,9 +359,9 @@ export default defineNuxtConfig({
|
||||
|
||||
## Programmatic Navigation
|
||||
|
||||
Nuxt 3 allows programmatic navigation through the `navigateTo()` utility method. Using this utility method, you will be able to programmatically navigate the user in your app. This is great for taking input from the user and navigating them dynamically throughout your application. In this example, we have a simple method called `navigation()` that gets called when the user submits a search form.
|
||||
Nuxt 3 allows programmatic navigation through the `navigateTo()` utility method. Using this utility method, you will be able to programmatically navigate the user in your app. This is great for taking input from the user and navigating them dynamically throughout your application. In this example, we have a simple method called `navigate()` that gets called when the user submits a search form.
|
||||
|
||||
**Note:** Ensure to always `await` on `navigateTo` or chain it's result by returning from functions.
|
||||
**Note:** Ensure to always `await` on `navigateTo` or chain its result by returning from functions.
|
||||
|
||||
```vue
|
||||
<script setup>
|
||||
|
Loading…
Reference in New Issue
Block a user