Hello,
I have a login screen and it works but trying to test the error handling
component but keeps getting *"Unexpected end of JSON input"*. I think it is
returning empty but not sure as to what exactly is returned.
What am i missing?
this._authService.userAuthentication(value).subscribe(
user => { if(user) { this.userInfo = user;
this.successMessage ="Successfully logged in";
this._router.navigate(['/userDashboard']);
}
},
error => {
this.errorMessage = "Login failed";
console.log("test output: ", JSON.stringify(error)); * <--- whats in the
"error" if login fails*
}
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.