Hi,
- Before the operation, take a memory snapshot
2. Click the button to open the dialog. After loading the data, close the dialog.
3.Collect garbage,
take a memory snapshot
The initial size is 54.9m. After opening a Dialog, the memory size is 82.6m, an increase of 50.5%.
Example:https://stackblitz.com/edit/angular-4wcnp8?file=src%2Fpages%2Fbase%2Fdialog.page.ts,src%2Fapp.component.ts,src%2Fapp.component.html