LEARNING BY VUEING

DOM refs
30 / 42

When dealing with third-party DOM libraries you might need access to the actual DOM element.

By specifying ref="email" on the input field, we get access to the DOM field using this.$refs.email.

Try adding a ref to the submit button and when click, alert its attribute data-id.