visjs/ngx-vis

How to use it with OnChange?

vatsalpande opened this issue · 0 comments

This is more of a question because I couldn't find any example for this. My graph updates consistently and on clicking of any node appends new node. However, I cannot place code in ngOnChange as it fails with " Network with networkId not found" because network is not initialized til it reaches ngOnInit. Since ngOnInit is only called once I can't use that as well for my use case. If there is any demo example using ngOnChange or any suggestion, that will be highly appreciated.

I am sure many others will face similar issue.

Appreciate your help on this.