Hello Sir,
Thanks for the update. Actually I want to add only the e-connectors dynamically. Please look the below code snippet,
In app.component.html file,
<e-connectors>
<e-connector *ngFor="let coordinates of finalCordinates" [sourcePoint]='{"x":coordinates.sourcePoint.sourcePointx,"y":coordinates.sourcePoint.sourcePointy}'
[targetPoint]='{"x":coordinates.targetPoint.targetPointx,"y":coordinates.targetPoint.targetPointy}' [style]='{ "strokeWidth": 2,"strokeColor": "#fff","fill": "transparent","strokeDashArray": "","opacity": 1,"gradient": {"type": "Straight"}}' [targetDecorator] = '{ shape: "None" }'>
</e-connector>
</e-connectors>
----------------------------------------------------------------------------------------------------------------------
Where the finalCordinates is my input array. It Contains 6000 entries and it is taking a lot of time to render.
I have tried your solution, but it is not working. It showing the error "invalid host/origin header" in the console. I am using Angular version 7, typescript version 3.2.4 respectively.