I'm having trouble making the PrimeNg TabView component work with a confirmDialog. Here's my code:
<p-tabView (onChange)="onTabChange($event)" [(activeIndex)]="index">...</p-tabView>
onTabChange(event){
this.confirmationService.confirm({
message: 'Do you want to proceed?',
accept: () => {
this.index = event.index;
},
reject:() =>{ }
});
}
Any suggestions on how to handle tab change confirmation using a dialog box?
Thanks