npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ngx-smart-spinner

v13.0.2

Published

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.0.

Readme

Smart spinner Angular library

Library provide manage spinners on your application without unnecessary manual work, such as:

	this.isLoading = true;
    

Demo page

https://arioshaman.github.io/ngx-smart-spinner/

how implement solution

Step 1 Install package
npm install ngx-smart-spinner
Step 2 import module
imports: [
	NgxSmartSpinnerModule.forRoot()
]

If don't want to use default spinner you can provide your own spinner:

const ngxSmartSpinnerCont: INgxSmartSpinnerModuleConfig = {
  spinnerUrl: '../assets/icons/spinner.svg',
  spinnerSize: 50,
};

...
imports: [
	NgxSmartSpinnerModule.forRoot(ngxSmartSpinnerCont)
]

spinnerUrl - can be path to your local file or url to your file. spinnerSize - you should additionaly provide default size of spinner in px

Additionally: You can change the icon usage by substituting the desired image (icon) into the component itself (example on step 3)

Step 3 Component usage
 <ngx-smart-spinner
      id="SOME_ID_FOR_YOUR_SPINNER"
 ></ngx-smart-spinner>

for id you can use any string to identify your spinner (you can use uuid - at your choice)

If you will use the same id on different component - it's not a problem the library call both spinners.

Okey. We added a spinner to the page, what next?

Next you need connect your spinner with http request, it's making simply just modify your headers on request:

  public getList(spinnerId: string): Observable<any> {
    const url = '/some/url';
    const headers = new HttpHeaders({
      spinnerId,
    });

    return this._http.get(url, { headers });
  }

The package automatically handle the needed header and will remove spinnerId before request will called.

How pass different spinner asset?

First way

Firstly you can provide different images provide module on different places. For example:

Module 1:

const ngxSmartSpinnerCont: INgxSmartSpinnerModuleConfig = {
  spinnerUrl: '../assets/icons/spinner-01.svg',
  spinnerSize: 50,
};

...
imports: [
	NgxSmartSpinnerModule.forRoot(ngxSmartSpinnerCont)
]

Module 2:

const ngxSmartSpinnerCont: INgxSmartSpinnerModuleConfig = {
  spinnerUrl: '../assets/icons/spinner-02.svg',
  spinnerSize: 100,
};

...
imports: [
	NgxSmartSpinnerModule.forRoot(ngxSmartSpinnerCont)
]

Second way

You can change the spinner asset just putted it on component:

<ngx-smart-spinner
	id="secondSpinnerId"
>
	<img src="../assets/icons/spinner-2.svg">
</ngx-smart-spinner>

Component API

| Property| Description | |------|---| |id|uniq identifier of your spinner (can be duplicated in case when we want use a few spinners for one http request)| |size|set the size of your spinner in px, default is 50px|