Hi
In Angular 17 using Local Storage how to delete record when User confirms O.K in Modal Popup not using Confirm function
Thanks
Hi
In Angular 17 using Local Storage how to delete record when User confirms O.K in Modal Popup not using Confirm function
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted May 13, 2024, 10:23 AM
To achieve record deletion confirmation using a Bootstrap Modal in Angular 17 without relying on the
confirmfunction, you can implement a custom confirmation dialog. Here's a basic example of how you can accomplish this:By following these steps, you can implement a custom delete confirmation using a Bootstrap Modal in Angular 17 without using the standard
confirmfunction.Jignesh KumarPosted May 13, 2024, 8:41 AM
Hello,
Once you get your model pop-up open, in you component confirm button click method you can write below code to delete,
Ramco RamcoPosted May 13, 2024, 6:41 AM
Hi Jayraj
I want delete confirmation using BootStrap Modal
Thanks
Jayraj ChhayaPosted May 13, 2024, 6:26 AM
Hi Ramco Ramco,
To achieve this in Angular 17, you can create a custom modal component for confirmation. When the user clicks the delete button, open the modal for confirmation. Upon confirmation, delete the record from Local Storage.
In your parent component: