[Vuejs]-Trying to display a values from multiple API fetch

0👍

You can use Promise.all to combine all your result.

   const allFetches = acoes.map(
           data => fetch(...)
                      .then(response => response.json()
   )

   Promise.all(allFetches)
          .flatMap(result => result)
          .then(posts => {
              this.posts = posts;
          });

Leave a comment