One of the methods in my Angular component is responsible for returning data
Here is a snippet of that method
getRecognitionById() {
this.loaderService.show(null, true);
forkJoin(
this.vendorWebApiService.getRecognitionById(this.executiveChangeId),
this.vendorWebApiService.getLatestFeedback(this.executiveChangeId)).pipe(take(1))
.subscribe(res => {
this.recognitionData = res[0];
this.latestFeedback = res[1];
this.generateResponseFeedbackGroup();
this.loaderService.hide(true);
});
}
I want to implement a functionality where if the response is not received within 8 seconds, I need to alert the user with
alert(response.exceptionMessage);
Can someone guide me on how to achieve this?