I encountered the following code:
HTML:
<p @click="changeForm">Iniciar sesion</p>
JS
export default {
name: "Register",
props: {
changeForm: Function,
},
setup() {
//How do I invoke the props changeForm here???
}
}
What is the correct way to call my props function from JS? Is there a way to simulate a click on my p element to trigger it?
I am currently using Vue 3. I have experimented with this.changeForm and props.changeForm but haven't had success.