I
I
Igor Bezlepkin2019-08-23 09:25:22
Vue.js
Igor Bezlepkin, 2019-08-23 09:25:22

How to insert another parameter in Vue when returning via $emit?

Hey! There is a cycle in template. The loop has a component that returns a string when the textarea is blurred.
5d5f8678a4e90435136351.png
if I prescribe my own parameters, then what I passed $emit disappears.
I need what $emit returned + its parameter

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Anton, 2019-08-23
@Bezlepkin

@_blur="initialEventParam =>$emit('yourEventName', {initialEventParam , yourData})"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question