Create a dialog service that you can then inject into any component to generate your dialog. That way the business logic has no idea about how a dialog works but is only interested in getting user input.
The code becomes clean and maintainable. If in future you want to replace the dialog with something else then you only have one place to make changes into.
code:
https://github.com/grepsoft/angular-g...
Nesta página do site você pode assistir ao vídeo on-line Create Reusable Components in Angular | Dialog Box duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Grepsoft 23 Abril 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 5,873 vezes e gostou 57 espectadores. Boa visualização!