This article mainly introduces to you the relevant information about the parent component calling the internal method of the child component in vue.js. The article gives detailed sample code for your reference and study, which has certain reference value for everyone's study or work. Friends who need it, please follow the editor to learn together.
Preface
Today a colleague asked a question. When developing with iview, he needs to use the internal method of a component of iview, but this internal method is not exposed. In this case How to call the internal method of the component? It’s actually very simple. Here’s an example.
The above is the detailed content of Share the internal methods of parent components calling child components in vue.js. For more information, please follow other related articles on the PHP Chinese website!