if (this.IsloginMode) {
authObs = this.Authservice.login(email, password);
} else {
authObs = this.Authservice.signUp(email, password);
}
authObs.subscribe(resData=> {
console.log(resData);
this.Isloading = false;
},
(errorMeassage) => {
console.log(errorMeassage);
this.error = errorMeassage;
this.Isloading = false;
}
);
form.reset();
}
The signature ‘(next?: ((value: AuthResponseData) => void) | null | undefined, error?: ((error: any) => void) | null | undefined, complete?: (() => void) | null | undefined): Subscription’ of ‘authObs.subscribe’ is deprecated.