A
A
Artem00712017-04-29 11:33:14
JavaScript
Artem0071, 2017-04-29 11:33:14

How to call a method in a component?

I'm trying to screw this thing up .
My component is in a hidden component.
About this, the documentation says:

After the component appears, to call the refresh method.

How can I call this very refresh method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kulakov, 2017-04-29
@Artem0071

If you're using v-show to hide, then there's no way to know when the component appears. In this case, use the add. property to pass to the visibility state component. Or use v-if, then you can call refresh in the mounted() event.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question