- See the vue documentation
All .vue files in the pages directory are atomatically given routes. This makes setting up a navigation quick and easy.
Dynamic pages are automatically generated. A great example are blog posts created using a CMS. You will use _slug.vue in the pages/ directory to access this type of content that is generated by an API.
- Use an asynchronous function with
paramsto get information from the api:
<template>