We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Unable to load saved mindmap diagram into angular 21.1.35 version


3 Replies

SJ Sivaranjith Jeyabalan Syncfusion Team May 8, 2023 09:11 AM UTC

Hi,

In the sample you have provided, you have loaded the constant diagram JSON in the "loadDiagram" method. However, to load the exported JSON, you should pass the correct diagram JSON to the "loadDiagram" method. We have modified the sample so that you can choose the downloaded JSON file to load. Please find the updated sample below.

Sample: 1tb9kj (forked) - StackBlitz



VS Virendra Singh Rathore May 8, 2023 03:12 PM UTC

Hi,

It loads the diagram but does not persist the data you edited.

Steps:

1 Add one or two nodes edit their text.
2. Export the diagram into JSOn.
3.  Load the json back and you will all node and annotations comes up with default Node text.




SJ Sivaranjith Jeyabalan Syncfusion Team May 9, 2023 02:21 PM UTC

Hi,

We have made some modifications in the getNodeDefaults function. Now the edited annotation is rendered properly after save and load. Please find the modified sample below.

Sample: Hj3v4c (forked) - StackBlitz


Loader.
Live Chat Icon For mobile
Up arrow icon