Bernardstanislas
9/15/2015 - 11:58 AM

Chain promise

Chain promise

firstService(firstArgs).then((firstData) => {
  return secondService(secondArgs).then((secondData) => {
    return {
      firstKey: firstData,
      secondKey: secondData
    }
  });
});