PDA

View Full Version : Promise.all and Handlebars.js - Combining the results of two API requests in one list



kayut
07-04-2018, 07:29 AM
Hi,

In the following example I'm using fetch.all to combine two different API requests.

fetch.all and Handlebars.js (https://codepen.io/itsthomas/pen/BVEdOo?editors=0010)

The unordered list, which is created by using Handlebars.js is showing all staffs from the second request.

Now my question:

How can I add the result of the first request to the same unordered list?