![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
ngx-loading-buttons
Advanced tools
A lightweight Angular library to add a loading spinner to your Angular Material buttons.
ng add ngx-loading-buttons
Import the NgxLoadingButtonsModule
into your AppModule
. You can configure it as shown below:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { NgxLoadingButtonsModule } from 'ngx-loading-buttons';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgxLoadingButtonsModule,
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
And last of all, add it to your <button>
element like this.
<button mat-raised-button [mtBasicSpinner]="true">Basic</button>
You can also hide the button's text like this.
<button mat-raised-button [mtBasicSpinner]="true" [hideText]="true">Basic</button>
A "real-world component" would likely look like this.
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
saving: boolean = false;
save(): void {
this.saving = true;
// Juggle 5 hens while wiggling your toes and other magic... 🤡
}
}
And our template file.
<button mat-raised-button [mtBasicSpinner]="saving" (click)="save()">Basic</button>
Add our styles to yours
@import 'ngx-loading-buttons/styles';
Found a bug? Want to request a feature? Confused? Or wanna simply comment on how useful this library is?
Open an issue here.
Thanks goes to these wonderful people (emoji key):
Daniel Kreider 💻 | Totto 💻 | Raphaël Balet 💻 | Arthur Ming 💻 | Thomas Renger 💻 | mixer904 💻 | Fabien Wautriche 🐛 | tux1337 🐛 | Milán Németh 🐛 | Adrien 🐛 |
This project follows the all-contributors specification.
Contributions of any kind welcome!
FAQs
Unknown package
The npm package ngx-loading-buttons receives a total of 433 weekly downloads. As such, ngx-loading-buttons popularity was classified as not popular.
We found that ngx-loading-buttons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.