This is my subscribe method:
public invokeUnlockModal() {
let resetPassword = { userName: this.user?.userName}; //i need to send this to _confirmToUnlock method
this.infoModal.componentInstance.emitUserOp
.subscribe({ next: this._confirmToUnlock });
}
It calls this method
private _confirmToUnlock = async (response: { opStatus: string }) => {
if (response.opStatus.toLowerCase() === 'confirmed') {
// let resultObs= this.dataService.unlockUser(resetPassword);
//let result= await resultObs.toPromise();
}
}
My question how to send resetPassword data to _confirmToUnlock method in typesecript/rxjs.
Please le me know