Currently, in my code file numberOne.ts, I am making an API call and receiving a response. Now, I want to pass this response over to another file called numberTwo.ts.
I have been attempting to figure out how to transfer the API response from numberOne.ts to numberTwo.ts, but I am struggling with implementing it effectively. I have explored some resources like video tutorials on constructors, but unfortunately, I haven't been successful yet.
getDealStatusInfo() {
var statusRes
var dealid = 111;
DealApiControllers.GetDealStatus(dealid,
(response) => {
statusRes = response;
},
(error) => {
console.error(error);
});
}
The ultimate goal is to utilize this response within the context of numberTwo.ts