Angular-basic example doesn't show save and load methods of the diagram


#1

Hi,

We are using GoJs in our project.So,I am trying to use GoJs Angular-basic example, but there is no explanation or methods to save and load the data.

can you please help?


#2

Have you read https://gojs.net/latest/intro/usingModels.html, especially the last section, https://gojs.net/latest/intro/usingModels.html#SavingAndLoadingModels ?


#3

I have seen the pages you referred, but i am asking where you are going to save the model in Angular.
Parent component or child component, because when i tried to save in child component i am getting an empty array.

If i saved in main component i am getting the data


#4

I do not see how calling Model.toJson would produce different results depending on where the component is. Could you tell us what you are doing and how to reproduce the problem?