Aug 26, 2017 · 1 min read
Hey Ashkan!
I don’t think it’s a change detection problem. I believe d3 require to re-initialize the links forces. By calling this method:
this.simulation.force('links',
d3.forceLink(this.links).strength(FORCES.LINKS)
)Every time you add a link to the this.links array. Otherwise, the physical model will not acknowledge new links you pushed to your array.
