Template refs

    Despite the existence of props and events, sometimes you might still need to directly access a child component in JavaScript. To achieve this you can assign a reference ID to the child component or HTML element using the attribute. For example:

    Also, you can add another ref to the component itself and use it to trigger event from the parent component:

    WARNING

    See also: