I have a scenario where I need to toggle between two components, Register.vue [`my_reg-page`] and Login.vue [`my-signin_page`]. If the user opens the register page in the browser (using the /register URL), clicking on the Login heading will toggle the user to the login page (/login). Similarly, if the user opens the login page in Chrome, clicking on the signup heading will toggle the user back to the registration page. Can someone help me with how to achieve this toggling functionality?
Register.vue
<template>
... (content of Register.vue) ...
</template>
<script>
... (script content of Register.vue) ...
</script>
<style lang="scss" scoped>
... (styling for Register.vue) ...
</style>
Login.vue
<template>
... (content of Login.vue) ...
</template>
<script>
... (script content of Login.vue) ...
</script>
<style lang="scss" scoped>
... (styling for Login.vue) ...
</style>