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


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?

Have you read GoJS Using Models -- Northwoods Software, especially the last section, GoJS Using Models -- Northwoods Software ?

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

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?