docs: fix typo in programmatic navigation (#5298)

Co-authored-by: Damian <48835293+DamianGlowala@users.noreply.github.com>
This commit is contained in:
Nathan Chase 2022-06-08 15:21:52 -04:00 committed by GitHub
parent f5dca6245d
commit 7c2f96e5c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>