Closed Maximaximum closed 6 years ago
Hi @Maximaximum
I have a demo that may help http://jsbin.com/digupecame/edit?html,js,output
Thanks a lot!
Yet another question. I'd love to store the hotInstance as a property on my controller class, rather than calling hotRegisterer.getInstance()
each time I need to get the instance. But if I try to get the instance in the controller constructor, or in the $onInit
method (it's an angularjs component, not a general directive), getInstance()
returns undefined
(obviously, it hasn't been constructed yet). Could you give me a hint on which controller lifecycle hook should I use to be able to reliably get the instance?
Sorry for the delay. I have checked some possible approaches and ask our developer but currently this action i not available
I'm using the HOT directive like this:
Now, in my controller I need to call
hotInstance.validateCells()
at a certain place in code. But how do I get thehotInstance
?I couldn't find any info on this in the docs.