✔ Yes
To change the page you can either use
this.$router.push('/yourPath');
or use a router-link with a custom element
<router-link to="/yourPath" custom v-slot="{ navigate }">
<button @click="navigate">Something</button>
</router-link>
You can add a new page by creating a new file for eg. in views/
. Then open main.ts
and add a new object in routes
.
Example:
import yourComponent from './views/yourComponent';
const routes = [
{
path: '/yourPath',
name: 'YourName',
component: yourComponent
},
]