2
Good morning guys!
I’m having trouble passing an array to an Md-dialog.
Clicking an edit button sends the array in $Scope via locals to the Md-dialog controller, so I can change the data and save it. But the problem is that any modification I make in the array within the Md-dialog is applied simultaneously in the array of the page that is "behind" the dialog (page that sent the data), even if I cancel the dialog.
For example: I pass the multi-line array to the dialog, and if I remove a line from the array there in this dialog it also removes the line from the upload page array. It seems that they are linked and everything that happens in one is repeated in the other even if I cancel the dialogue. Dai when I go back in the edit array is without the line that was deleted before even having canceled the dialog.
Thank you from the outset for helping.
Hug!
You can share code regarding your problem?
– celsomtrindade