I'm Using Angular4 as front end and Go service as Back end. When user is log in,I need to check whether username already exist to do that GO service back end will check about that user. If the user is not exists and it displays message. How to display message that "Invalid user details".
Please refer some inputs about that.
Thank you
You can just check the response from the service if its sending the message back to the client catch the errror and display it.
this.http.post('http://localhost:8080/log', JSON.stringify(this.login))
.subscribe((response) => {
console.log('response data from golang ' + response);
},
errmess => { alert(errmess) });
}