This repository was archived by the owner on Dec 19, 2021. It is now read-only.
This repository was archived by the owner on Dec 19, 2021. It is now read-only.
Loader shows on every route change #11
Open
Description
I installed the loader on my Nativescript 6.x project and it works great.
However, it also flashes briefly on any route change / page navigation, even if I have not called it.
Has anyone else seen this? Any way to only show when I specifically call this.loader.show() ?
Loading Service Code:
import { Injectable } from '@angular/core';
import {
LoadingIndicator,
Mode,
OptionsCommon
} from '@nstudio/nativescript-loading-indicator';
@Injectable({
providedIn: 'root'
})
export class LoadingService {
public loader = new LoadingIndicator();
constructor() {
}
public showLoader() {
this.loader.show();
}
public hideLoader() {
this.loader.hide();
}
}
Metadata
Metadata
Assignees
Labels
No labels