Open go4cas opened 4 years ago
Okay, it seems the issue is with the callback
. I can only get it to work if the method has the same name as the timer. Is there any way around this.
My use case is: I pass in a collection of jobs, so I want to dynamically create a timer for each job, with its own name, and then use a common method as a callback. Is this possible?
dynamically create a timer after init vue that its not currently supported
I am trying to create a number of dynamic timers in the
mounted
lifecycle event of a component:But, when it gets to the
$timer.start()
call, I get the following: "[vue-timers.start] Cannot find timer tal-cs-tier1-callsInbound". Theconsole.log(this.timers)
shows that the timer object exists. I have tired both object notation and array.