button click redirection to another page vue
<template>
<div>
<button @click="redirectToAnotherPage">Go to Another Page</button>
</div>
</template>
<script>
export default {
methods: {
redirectToAnotherPage() {
// Use the $router.push method to navigate to another page
this.$router.push('/another-page')
}
}
}
</script>