Save reshapable links on backend after edit

Hello i’m implementing a POC of a graph with gojs with angular. i need when i change the position and the shape of the links to be saved correct on the backend

currently im only saving to the backend the from & to properties of the nodeLinksArray.

this is my code for links:

  this.diagram.linkTemplate = $(
        reshapable: this.allowEdit,
        resegmentable: this.allowEdit,
        relinkableFrom: this.allowEdit,
        relinkableTo: this.allowEdit,
        fromSpot: go.Spot.AllSides,
      $(go.Shape, { toArrow: 'Standard' })


Add this Binding to your link template:

    new go.Binding("points").makeTwoWay()

Are you using the Model.toJson method and Model.fromJson static function to serialize your model? If so, it should just work.

If not, then you’ll have to save the Link.points List of Points yourself somehow, and then restore them in an “InitialLayoutCompleted” DiagramEvent listener.

thanks im using Model.toJson so it was very easy