Open kennblvnp opened 6 years ago
This is a limitation of Vue.js. See the note at: https://vuejs.org/v2/api/index.html#ref
An important note about the ref registration timing: because the refs themselves are created as a result of the render function, you cannot access them on the initial render - they don’t exist yet!
<animate-number ref="myNum" :from="1" :to="10" :formatter="formatter"
created: function(){ this.$refs.myNum.start() }