This basic pattern applies to RxJS 6 in combination with Angular Material. However, it can be applied to any other environment that supports RxJS 6, as long as you have an observable-based dialog implementation.
- A user clicks on a button
- A confirmation dialog is shown
- If the user confirms, an action is performed