Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

event and method have the same name #428

Open
zRa1ny opened this issue Jul 7, 2022 · 1 comment
Open

event and method have the same name #428

zRa1ny opened this issue Jul 7, 2022 · 1 comment

Comments

@zRa1ny
Copy link

zRa1ny commented Jul 7, 2022

When my component needs to send an event Submit and needs to provide a method submit, like the Form component, what should I do? thank you

@romash1408
Copy link

Use other name for emitting method and set event name in decorator:

@Emit('submit')
emitSubmit() {}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants