Answers for "post request send json object typescript"

0

post request send json object typescript

headers = new HttpHeaders({
    'Content-Type': 'application/json'
  });

newVet(data: any) {
    const body = JSON.stringify(data);
    return this.httpClient.post(`${this.baseUrl}`, body, {headers: this.headers()});
  }
Posted by: Guest on January-31-2022

Code answers related to "post request send json object typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language