Sharing Top Content from the Angular-sphere.

ngx-loading-spinner – Angular 4 custom async loading spinner with t… #npm #javascript #nodejs

  • Angular 4 custom async loading spinner with two simple methods for your asychronous calls.
  • You can also configure your own threshold to show spinner only for more expensive processes!
  • [template] : Accepts HTML which generates the loading spinner.
  • You can apply additional css to design your own spinner, or can just pass *.
  • [threshold] : Accepts time in milliseconds for threshold through which you can conditionally show the spinner only for expensive calls.

Angular 4 custom async loading spinner with two simple methods for your asychronous calls. Custom loading template & loading text inputs are also available.

ngx-loading-spinner – Angular 4 custom async loading spinner with two simple methods for your asychronous calls. Custom loading template & loading text inputs are also available.

Angular 4 custom async loading spinner with two simple methods for your asychronous calls. Custom loading template & loading text inputs are also available.

Docs Link

Your stars on this git repo can make others happy! 🙂

You can override the css for your customized spinner. You can also configure your own threshold to show spinner only for more expensive processes! Supports latest Angular cli v1.3.2

Import module to your application master module

Make an import entry as shown below

Include spinner component to your root level component.

to the component where you want to show the spinner.

Inject dependancy

method to display the loading spinner.

method to hide the loading spinner once the processing is done.

Inputs :

[template] : Accepts HTML which generates the loading spinner. You can apply additional css to design your own spinner, or can just pass *.gif image to show the loading spinner.

[loadingText] : Accepts a string to display the text while the loading process.

[threshold] : Accepts time in milliseconds for threshold through which you can conditionally show the spinner only for expensive calls. Default is 500 ms.

default [loadingText] text would be…

ngx-loading-spinner