import { HttpClient } from '@angular/common/http';
constructor(public http: HttpClient) {}
this.http.post(BACKEND_URL, data)
.subscribe(
data => {
console.log("POST Request is successful ", data);
},
error => {
console.log("Error", error);
}
);