5.0.2 • Published 7 months ago

ng-loaders v5.0.2

Weekly downloads
127
License
MIT
Repository
github
Last release
7 months ago

ng-loaders Package

Install the package with the following command:

npm install ng-loaders

Setting the spinnerType

You can change the spinner that displays by setting the spinnerType input on the component. The color is changed by updating the --spinnerColor CSS variable.

Set the Default spinnerType

The library uses an InjectionToken to set the default spinnerType. This makes it so you don't have to provide the spinnerType input on every ngx-loader component. You can set the default spinnerType in your root module or root app component like so:

providers: [
	{
		provide: NG_LOADERS_CONFIG,
		useFactory: () => ({ spinnerType: 'rotating-dots' }),
	}
],

Styling the Loader

You can style the loader with a couple of CSS variables. The loader's color can be set with the --spinnerColor CSS variable. You can set the loader's overlay background color with the --spinnerOverlayColor CSS variable. You can set the loader's overlay opacity with the --spinnerOverlayOpacity CSS variable.

5.0.2

7 months ago

5.0.1

11 months ago

5.0.0

11 months ago

4.0.0

2 years ago

3.2.0

3 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.4.3

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago