V
V
Vladislav2017-10-10 16:14:53
Vue.js
Vladislav, 2017-10-10 16:14:53

How to handle the instance method, the data data of the child component?

Can you please tell me how to process the data of a child component using the instance method? I have a certain number of components in which the same method is often repeated, and unfortunately there is no way to combine them, since they should work differently, and I think how can I not copy-paste the same thing, (I have thoughts to use global functions, and pass certain attributes to them, and then just call them in a method), but there may be a more elegant solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Gontarev, 2017-10-10
@umni4ak

as an option to take out the handler separately and use mixins

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question