Easy way to make a confirmation dialog in Angular?

Discussão em 'Angular' iniciado por victor dencowski, Janeiro 15, 2025.

  1. Is there any not-so-complicated way to make a confirm dialog in angular 2, the idea is to click on an item and then show a popup or modal to confirm its deletion, I tried angular 2 modals from here angular2-modal, but I don't know how to make that if you confirm or cancel it does something. the click function works fine, the only problem is that I don't know too well how to use it. I also have another modal with the same plugin with the difference that I use.

    this.modal.open(MyComponent);


    And I don't want to create another component just for show a confirmation box that's why I'm asking.

    Continue reading...

Compartilhe esta Página