Answers for "await in angular 8"

0

await in angular 8

private async fetchData(){
    const data = await this.httpClient.get(this.apiUrl).toPromise();
    console.log("Data: " + JSON.stringify(data)); 
  }
Posted by: Guest on December-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language