I’m struggling with an issue preventing Activity Indicator being shown in my Angular-Nativescript Project.
I have a method deleteData (see below) executing a long-running task: I need to display “Activity Indicator” at the start and at the end of the method.
The activity Indicator is not displayed, maybe because Angular doesn’t refresh the UI during method execution - I tried to use also Promise and Observable but I had the same result - any idea how to solve?
public deleteData() {
var loader = new LoadingIndicator();
loader.show();
// long running task
this.database.executeQuery(“all_customers”);
loader.hide();
}