Currently, I am facing an issue with displaying a ngx-bootstrap progress bar while my application is loading data from a csv file.
The Challenge: The user interface becomes unresponsive until the entire operation is completed
To address this problem, I attempted to use setTimeout to divide the loading process and called it recursively. Additionally, I experimented with ngZone.run(), applicationRef.tick(), and changeDetectorRef.markForCheck(), but none of these solutions were successful as the progress bar only shows full at the very end of the operation.
I have created a simplified stackblitz example to seek guidance on how to implement this functionality correctly. While in my actual code, I have implemented it within a service where the results are obtained through an observable. However, if this basic version works, it will help me identify what mistakes I may be making. https://stackblitz.com/edit/angular-gzdylf