A basic example of how to use Vue Router with Vue 3 using dynamic and static routes 📚☝️
Date: February, 2021
Duration: 2 Days.
It started as part of a @escuelavue course on Vue 2 and Vue Router, but I ended up adapting it to Vue 3 and Vue Router 4.0
You can try it using the Demo
It does not have much complication, the usual flow, download the repository, install dependencies and serve
- Clone/Download the repository.
git clone https://github.com/udsgit/vue3-router-example
- You may have to install the packages with NPM.
npm install
- Serve to local.
npm run serve
- Open the link from the Demo or execute the serve with the steps above.
- You can access 2 static routes (Legal and Contact), and the dynamic route that each user is.
Project is: Completed.
Because it fulfills its mission of serving as an example for the basic parts of Vue Router with Vue 3.
Created by @Emmanuel, feel free to contact me!