SGShyam G Syncfusion Team May 3, 2017 12:50 PM UTC
Please use diagram’s save method which helps to serialize the Diagram as JSON. This JSON data can be converted to string and stored for future use. Please refer to the code example and help documentation.
var diagram = $("#ejControl_0").ejDiagram("instance");
Hi, I m new to all this so i find it hard to get it to work, so if i may get a demo or something more clear on how implement that in my code correctly and to serialize the Diagram.I would really appreciate your help.. Thank you,
SGShyam G Syncfusion Team May 10, 2017 01:20 PM UTC
We have created an Angular 2 layout sample in which we have shown how to get the JSON string from the save method. Now you can connect Angular 2 with MongoDB and save that string into the database.