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...
En esta página del sitio puede ver el video en línea Create Reusable Components in Angular | Dialog Box de Duración hora minuto segunda en buena calidad , que subió el usuario Grepsoft 23 abril 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 5,873 veces y le gustó 57 a los espectadores. Disfruta viendo!