I have a long running server call, it takes like 30-40 mins. My angular front end timeouts. How can I increase the default timeout for this service call ?
method1(id: number): Promise<number> {
const body= JSON.stringify(id);
return sendReq.post(url, body)
.then((res) => res)
.catch((err: any) => {
});
}
I have seen a property called timeout
but, not sure how to apply that into my code above. Can someone help me out.