xlsdg / vue-countup-v2

Vue.js component wrap for countUp.js
https://inorganik.github.io/countUp.js/
MIT License
380 stars 56 forks source link

How to access methods from outside the component? #5

Closed devanflaherty closed 6 years ago

devanflaherty commented 6 years ago

Hey there, I'm wanting to initially my countUp pause until triggered by a scroll event.

Not sure how to get access to the instance outside the component, any advice?

xlsdg commented 6 years ago

@ready can get instance, see https://github.com/xlsdg/vue-countup-v2-demo.

xlsdg commented 6 years ago

Or this.$refs.xxxxxxx.reset() .

devanflaherty commented 6 years ago

Thanks!

On Feb 4, 2018, 6:21 PM -0700, xLsDg notifications@github.com, wrote:

Or this.$refs.xxxxxxx.reset() . — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.