How to add pop-up confirmation in angular typescript.
if (confirm("All unsaved changes will be lost. Do you want to cancel the update?")) { this.router.navigate(["Product"]); }
if (confirm("All unsaved changes will be lost. Do you want to cancel the update?")) { this.router.navigate(["Product"]); }