Closed mpomet closed 5 years ago
It looks like you are loading the item through angular because of the ng-scope
tag. I think I see the reason you are asking this question because I faced a similar problem when integrating with React. Have you seen anything in the library in relation to the Kekule.IO
documentation? Kekule.IO.loadFormatData(KekuleJSONObj, 'Kekule-JSON')
may be more up your alley so you no longer have to pass in the data-chem-obj
property on your Kekule div.
Maybe the angular $compile component would help.
@AaronLlanos Yes thank you that works. I was looking for global method but finally I used your answer and apply it manually for all Kekule-div in the dom. Not really elegant, but functionnal.
Hello,
My question is quite simple, but after hours I didn't manage to make it works. Let's say I have the following Element :
Everything is actually working if this Dom Element exists on page load. But if I add it manually to the dom After Kekule has been initialized, the viewer doesn't show up (I understand why).
So now I'd like to tell kekule to re-init itself. Something like
Kekule.init(document)
How do I do this ?
Thank you by advance and sorry to create an issue for simple usage purpose.