Skip to content
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
@tskweres

Description

@tskweres

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions