I have the below code:
vm.testService.getUser(id, name)
.then((resultA) => {
return vm.testService.getUserInfo(id, name);
})
.then(() => {
// will process resultA from first .then
});
I need to access resultA on the second .then. Thanks in advance.