Skip to content

Instantly share code, notes, and snippets.

@rustyvz
Created April 7, 2025 19:45
Show Gist options
  • Save rustyvz/29060f31a6aa53e89432d9c8ca9ea7a4 to your computer and use it in GitHub Desktop.
Save rustyvz/29060f31a6aa53e89432d9c8ca9ea7a4 to your computer and use it in GitHub Desktop.
this.showMainSpinner(this.l('Uploading'));
this.hideMainSpinner();
// -- or --
private ngxSpinnerTextService: NgxSpinnerTextService;
constructor(
injector: Injector,
private _spinnerService: NgxSpinnerService)
{
this.ngxSpinnerTextService = injector.get(NgxSpinnerTextService)
}
this.ngxSpinnerTextService.setText(spinnerTexts.processingStep);
this._spinnerService.show();
this.ngxSpinnerTextService.setText(spinnerTexts.default);
this._spinnerService.hide();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment