Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

await in angular 8

  private async fetchData(){
    const data = await this.httpClient.get(this.apiUrl).toPromise();
    console.log("Data: " + JSON.stringify(data)); 
  }
Source by www.techiediaries.com #
 
PREVIOUS NEXT
Tagged: #await #angular
ADD COMMENT
Topic
Name
1+7 =