In the scenario where I need to utilize an object from another TypeScript file, specifically when I have an API response in one.ts that I want to use in two.ts.
I attempted exporting and importing components but encountered difficulties.
This code snippet can be found in my one.ts:
getDealStatusInfo(dealid) {
var statusRes
DealApiControllers.GetDealStatus(dealid,
(response) => {
statusRes = response;
console.log(statusRes)
},
(error) => {
console.error(error);
});
}
The aim is to access the statusRes object in two.ts.