am trying to post the data into json file using http post method…
this was my code…
let headers = new Headers();
headers.append(‘Content-Type’, ‘application/json’);
this.http.post(‘http://localip:8081/logindata’, (data),{headers:headers}) .subscribe(data => {
console.log(data);
});
it reflects with typescript error…