How to use confirmation dialog in angular?
One simple way to confirm is to use the native browser confirm alert. The template can have a button or link. And the component method can be something like below. Another way to get a simple confirmation dialog is to use the angular bootstrap components like ng-bootstrap or ngx-bootstrap.
How does window confirm work?
window. confirm() instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels the dialog.