Problems with the communication of a vue child component to a parent component

clipboard.png

if the child component is used twice on the same page, how does the child component communicate with the parent component?

Feb.28,2021

Child component $emit Custom event, parent component listens for event

one page calls two, so how can you tell who is who?
  

then pass a parameter in emit. You have to make a distinction.

Menu