Hello,
I'm following this totorial: https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Developing-Step-By-Step-Angular-Deleting-Person and I'm having an issue with the SweetAlert component on the following method:
deletePerson(person: PersonListDto): void { this.message.confirm( this.l('AreYouSureToDeleteThePerson', person.name), isConfirmed => { if (isConfirmed) { this._personService.deletePerson(person.id).subscribe(() => { this.notify.info(this.l('SuccessfullyDeleted')); _remove(this.people, person); }); } } ); }
"IsConfirmed =>" shows an error in VisualStudio Code and the app won't compile. The error I see reads:
Argument of type '(isConfirmed: any) => void' is not assignable to parameter of type 'string'.
I would appreciate it if you can point me in the right direction as I've been unable to fix this issue.
Kind regards,