Close md-dialog inside it's component.ts

Discussão em 'Angular' iniciado por esquarial, Janeiro 27, 2025.

  1. esquarial

    esquarial Guest

    I have a md-dialog component - DialogComponent - which i open from sibling component - SiblingComponent - and i want to close it in dialog.component.ts after some actions.

    DialogComponent basically is a form with submit button, submitting form takes me to dialog.component.ts function where i'm doing some validation and sending data to service.

    After validation passes and data is sent i want to make some timeout and then automatically close dial window, but i dont know how to run something like md-dialog-close in dialog.component.ts

    Continue reading...

Compartilhe esta Página