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...
Auf dieser Seite können Sie das Online-Video Create Reusable Components in Angular | Dialog Box mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Grepsoft 23 April 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 5,873 Mal angesehen und es wurde von 57 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!