![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@k-adam/ngx-loading-spinner
Advanced tools
Angular 8+ loader spinner. It can be used with two simple methods, `.show()` and `.hide()`. An example can be found in the `/projects/spinner-test`.
Angular 8+ loader spinner. It can be used with two simple methods, .show()
and .hide()
. An example can be found in the /projects/spinner-test
.
Install library ( Angular 10+ ):
npm install @k-adam/ngx-loading-spinner --save
If you are using an older version of Angular x (8/9), then install it this way:
npm install @k-adam/ngx-loading-spinner@1.x --save
Import module to your applications main module:
import { NgxLoadingSpinnerModule } from '@k-adam/ngx-loading-spinner';
Import it in your NgModule
:
imports: [ NgxLoadingSpinnerModule.forRoot() ]
Place the component somewhere in your root level component:
<ngx-loading-spinner></ngx-loading-spinner>
Import NgxLoadingSpinnerService
to the components where you want to control the spinner:
import { NgxLoadingSpinnerService } from '@k-adam/ngx-loading-spinner';
Inject dependency:
constructor(
private spinnerService: NgxLoadingSpinnerService
) { }
Use show() and hide() method to control the loading spinner:
this.spinnerService.show();
// ...
this.spinnerService.hide();
All the parameters are optional.
Name | Type | Default | Description |
---|---|---|---|
timeout | number | 10000 ms | The spinner will be hidden automatically after the given time |
threshold | number | 500 ms | The spinner will be visible only, if the time between calling show() and hide() is more than threshold |
zIndex | number | 100 | The z-index property of the spinner overlay element |
loadingText | string | The displayed text under the spinner | |
template | string | The spinner can be replaced with HTML text |
Example:
<ngx-loading-spinner
[threshold]="250"
[timeout]="20000"
[loadingText]="'Loading...'"
></ngx-loading-spinner>
FAQs
Angular 8+ loader spinner. It can be used with two simple methods, `.show()` and `.hide()`. An example can be found in the `/projects/spinner-test`.
We found that @k-adam/ngx-loading-spinner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.