Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios async await

async fetchCatFacts() {
    await axios.get("//localhost:8082/api_v1/orders", {})
        .then((response) => {

          this.catFacts = response.data.data;
          console.log("resp", response.data);
        });
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #axios #async #await
ADD COMMENT
Topic
Name
2+9 =