{"id":13808686,"url":"https://github.com/dkreider/ngx-loading-buttons","last_synced_at":"2025-09-29T09:13:53.803Z","repository":{"id":38809265,"uuid":"479367573","full_name":"dkreider/ngx-loading-buttons","owner":"dkreider","description":"A lightweight Angular library to add a loading spinner to your Angular Material buttons. 🙊","archived":false,"fork":false,"pushed_at":"2024-10-24T20:32:11.000Z","size":1663,"stargazers_count":16,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-25T22:25:56.810Z","etag":null,"topics":["angular","angular-material","angularmaterial","spinner","spinners"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ngx-loading-buttons","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dkreider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-08T11:42:42.000Z","updated_at":"2024-10-24T20:32:16.000Z","dependencies_parsed_at":"2024-02-05T18:56:44.428Z","dependency_job_id":"645486c2-47bf-4af8-878a-c1f261c681c6","html_url":"https://github.com/dkreider/ngx-loading-buttons","commit_stats":{"total_commits":66,"total_committers":3,"mean_commits":22.0,"dds":"0.43939393939393945","last_synced_commit":"fcc5d55b046d066ca426ccec35c6fd000e8ff883"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkreider%2Fngx-loading-buttons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkreider%2Fngx-loading-buttons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkreider%2Fngx-loading-buttons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkreider%2Fngx-loading-buttons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkreider","download_url":"https://codeload.github.com/dkreider/ngx-loading-buttons/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225273259,"owners_count":17448074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular-material","angularmaterial","spinner","spinners"],"created_at":"2024-08-04T01:01:49.274Z","updated_at":"2025-09-29T09:13:48.757Z","avatar_url":"https://github.com/dkreider.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Loaders"],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg width=\"20%\" height=\"20%\" src=\"https://raw.githubusercontent.com/dkreider/ngx-loading-buttons/main/logo.png\"\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n![npm](https://img.shields.io/npm/dt/ngx-loading-buttons)\n![npm](https://img.shields.io/npm/dm/ngx-loading-buttons)\n[![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/ngx-loading-buttons)](https://bundlephobia.com/result?p=ngx-loading-button)\n[![ngx-loading-buttons](https://github.com/dkreider/ngx-loading-buttons/workflows/ngx-loading-buttons/badge.svg)](https://github.com/dkreider/ngx-loading-buttons/actions/workflows/main.yml)\n[![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)]()\n[![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat-square)](#contributors-)\n[![npm](https://img.shields.io/npm/l/express.svg?maxAge=2592000)](https://github.com/dkreider/ngx-loading-buttons/blob/main/LICENSE)\n\n\nA lightweight Angular library to add a loading spinner to your [Angular Material](https://material.angular.io) buttons. \n\n\u003cimg src=\"https://raw.githubusercontent.com/dkreider/ngx-loading-buttons/main/example.gif\"\u003e\n\n\n### Installation\n\n```\nng add ngx-loading-buttons\n```\n\n## Usage\n\nImport the `NgxLoadingButtonsModule` into your `AppModule`. You can configure it as shown below:\n\n```ts\nimport { NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgxLoadingButtonsModule } from 'ngx-loading-buttons';\n\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [\n    AppComponent    \n  ],\n  imports: [\n    BrowserModule,\n    NgxLoadingButtonsModule,\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n\n```\n\nAnd last of all, add it to your `\u003cbutton\u003e` element like this.\n\n```html\n\u003cbutton mat-raised-button [mtBasicSpinner]=\"true\"\u003eBasic\u003c/button\u003e\n```\n\nYou can also hide the button's text like this.\n\n```html\n\u003cbutton mat-raised-button [mtBasicSpinner]=\"true\" [hideText]=\"true\"\u003eBasic\u003c/button\u003e\n```\n\nA \"real-world component\" would likely look like this.\n\n```typescript\nimport { Component } from '@angular/core';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n  saving: boolean = false;\n\n  save(): void {\n    this.saving = true;\n    // Juggle 5 hens while wiggling your toes and other magic... 🤡\n  }\n\n\n}\n```\n\nAnd our template file.\n\n```html\n\u003cbutton mat-raised-button [mtBasicSpinner]=\"saving\" (click)=\"save()\"\u003eBasic\u003c/button\u003e\n```\n\nAdd our styles to yours\n\n```scss\n@import 'ngx-loading-buttons/styles';\n```\n\n## Issues 🐛\n\nFound a bug? Want to request a feature? Confused? Or wanna simply comment on how useful this library is? \n\nOpen an issue [here](https://github.com/dkreider/ngx-loading-buttons/issues).\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.danielk.tech/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/11043868?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDaniel Kreider\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dkreider/ngx-loading-buttons/commits?author=dkreider\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Totto16\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/32566573?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTotto\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dkreider/ngx-loading-buttons/commits?author=Totto16\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://megaphone.info/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/44493964?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRaphaël Balet\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dkreider/ngx-loading-buttons/commits?author=rbalet\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://damingerdai.github.io/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/16384908?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eArthur Ming\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dkreider/ngx-loading-buttons/commits?author=damingerdai\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.bolzplatzarena.net/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/6323357?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eThomas Renger\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dkreider/ngx-loading-buttons/commits?author=rengert\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/mixer904\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/89263304?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003emixer904\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/dkreider/ngx-loading-buttons/commits?author=mixer904\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/fwautriche\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3090227?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFabien Wautriche\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e🐛\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/tux1337\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/33804893?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003etux1337\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e🐛\u003c/td\u003e    \n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/MilanNemeth\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/63391662?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMilán Németh\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e🐛\u003c/td\u003e    \n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/Deewens\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/26287270?v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAdrien\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e🐛\u003c/td\u003e    \n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.\n\nContributions of any kind welcome!\n\n## Credits\n- \u003ca href=\"https://www.flaticon.com/free-icons/fidget-spinner\" title=\"fidget-spinner icons\"\u003eFidget-spinner icons created by Smashicons - Flaticon\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkreider%2Fngx-loading-buttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkreider%2Fngx-loading-buttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkreider%2Fngx-loading-buttons/lists"}