{"id":18967477,"url":"https://github.com/silvareal/ngx-loading-x","last_synced_at":"2025-09-03T02:43:41.050Z","repository":{"id":43422443,"uuid":"269474691","full_name":"silvareal/ngx-loading-x","owner":"silvareal","description":"Multiple Loaders / spinners in angular","archived":false,"fork":false,"pushed_at":"2023-08-15T21:45:29.000Z","size":1611,"stargazers_count":8,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T07:51:19.238Z","etag":null,"topics":["angular","loader","loaders","loading","loading-animations","loading-spinner","loading-spinners","loading-x"],"latest_commit_sha":null,"homepage":"https://ngx-loading-x.stackblitz.io/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silvareal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-06-04T22:04:19.000Z","updated_at":"2023-08-15T21:45:37.000Z","dependencies_parsed_at":"2024-11-08T14:43:56.629Z","dependency_job_id":"fca5d389-5780-4e31-873f-6ea3fc9a6387","html_url":"https://github.com/silvareal/ngx-loading-x","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":"0.045454545454545414","last_synced_commit":"24a3b19565ed00f68fbc6484c1ef1e43f6de180c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/silvareal/ngx-loading-x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvareal%2Fngx-loading-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvareal%2Fngx-loading-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvareal%2Fngx-loading-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvareal%2Fngx-loading-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silvareal","download_url":"https://codeload.github.com/silvareal/ngx-loading-x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silvareal%2Fngx-loading-x/sbom","scorecard":{"id":823908,"data":{"date":"2025-08-11","repo":{"name":"github.com/silvareal/ngx-loading-x","commit":"0cfe873c6f866e6f023587bb57567ec8af51b1e2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"50 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-c75v-2vq8-878f","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-92r3-m2mg-pj97","Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw","Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-776f-qx25-q3cc"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T16:14:11.255Z","repository_id":43422443,"created_at":"2025-08-23T16:14:11.256Z","updated_at":"2025-08-23T16:14:11.256Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273381916,"owners_count":25095330,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","loader","loaders","loading","loading-animations","loading-spinner","loading-spinners","loading-x"],"created_at":"2024-11-08T14:43:43.005Z","updated_at":"2025-09-03T02:43:41.023Z","avatar_url":"https://github.com/silvareal.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub issues](https://img.shields.io/github/issues/silvareal/ngx-loading-x)](https://github.com/silvareal/ngx-loading-x/issues)  ![npm](https://img.shields.io/npm/dw/ngx-loading-x) ![NPM](https://img.shields.io/npm/l/ngx-loading-x)\n# Ngx Loading X\n![](src/assets/demo/ngx-loading-x-demo.gif)\n\n# Demo\nCheck out the interactive live [demo](https://stackblitz.com/edit/ngx-loading-x)\n\n# Getting Started\n\n## Installation\nInstall `ngx-loading-x` version 1 from **NPM** using this command\n```shell\nnpm install ngx-loading-x@1.0.3 --save\n```\n\n## For Angular v16\nInstall `ngx-loading-x` version 2 from **NPM** using this command\n```shell\nnpm install ngx-loading-x@2.0.0 --save\n```\n\u003e Thanks to [TaylorHo](https://github.com/taylorho/)\n\n\n## Usage\nImport `NgxLoadingXModule` into the root of your module\n\n```js\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { CoreModule } from './core/core.module';\nimport { NgxLoadingXModule } from 'ngx-loading-x';\n \n@NgModule({\n  declarations: [AppComponent],\n  imports: [\n    BrowserModule,\n    // Import NgxLoadingXModule\n    NgxLoadingXModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\ncreate a boolean variable that is accessible from the component which will contain ngx-loading-x. This boolean is used as an input into ngx-loading to determine when the loading spinner is visible.\n```js\nimport { Component, OnInit } from '@angular/core';\n\n@Component({\n    //...\n})\nexport class AppComponent implements OnInit {\n    //...\n    public loading = false;\n\n    constructor() { }\n\n    ngOnInit() { }\n\n    registerTest() {\n        // loading triggered\n        this.load = true;\n\n        setTimeout(() =\u003e {\n            // loader stops after 5s\n            this.load = false,\n            // ..\n            this.register = true;\n        }, 5000)\n    }\n}\n```\n\nInclude `ngx-loading-x` component selector to your app component templates, Set the [show] input variable of ngx-loading-x to point to your boolean i.e load, which will determine the `ngx-loading-x` visibility.\n```html\n\u003cngx-loading-x [show]=\"load\"\u003e\u003c/ngx-loading-x\u003e\n```\n`ngx-loading-x` component selector attributes\n## `ngx-loading-x` component selector Attributes\n| Attributes | Type | Required | Default | Description |\n| :---         |     :---     |       :--- |  :---         |     :---      |\n|   `show`   |  boolean     |    optional    |  `false`   |     Determines the visibility of the loader    |\n| `bgLogoUrl`    | string      | optional    |    `(empty string)`    | Logo Url    |\n| `bgOpacity`    | number      | optional    |    `5`    | background opacity    |\n| `bgLogoUrlPosition`    | number      | optional    |    `bottom-right`   | Logo position. available positions can be accessed via `POSITION`   |\n| `bgLogoUrlSize`    | number      | optional    |    `100`   | Logo size   |\n| `spinnerType`    | string      | optional    |    `wandering-cubes`   | Spinner animation type. available types can be accessed via `SPINNER`  |\n| `spinnerSize`    | number      | optional    |   ` 120`   | Spinner size   |\n| `spinnerColor`    | string      | optional    |    `#dd1b16`   | Spinner color   |\n| `spinnerPosition`    | string      | optional    |    `center-center`   | Spinner position. available positions can be accessed via `POSITION`   |\n\n# `NgxLoadingXBlur` Directive\nIf you want your page content is blurred/frosted while showing the loading background overlay.\n```html\n\u003cdiv NgxLoadingXBlur [show]=\"load\"\u003e\n  \u003c!-- This page content will be blurred/frosted when loading background overlay is showed --\u003e\n\u003c/div\u003e\n\u003cngx-loading-x [show]=\"load\"\u003e\u003c/ngx-loading-x\u003e\n\n```\n## Attribute\n| Attributes | Type | Required | Default | Description |\n| :---         |     :---:      |       :---:  |  :---:          |     :---      |\n|   `bgBlur`   |  boolean     |    optional    |    `5`   |    blurred/frosted background    |\n\n\n\n# Custom configuration for `NgxLoadingXModule`\nYou can override the default configuration via `forRoot()` method.\n```js\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { AppComponent } from './app.component';\nimport { NgxLoadingXConfig, POSITION, SPINNER, NgxLoadingXModule } from 'ngx-loading-x';\n\n\nconst ngxLoadingXConfig: NgxLoadingXConfig = {\n  show: false,\n  bgBlur: 2,\n  bgOpacity: 5,\n  bgLogoUrl: '',\n  bgLogoUrlPosition: POSITION.topLeft,\n  bgLogoUrlSize: 100,\n  spinnerType: SPINNER.wanderingCubes,\n  spinnerSize: 120,\n  spinnerColor: '#dd0031',\n  spinnerPosition: POSITION.centerCenter,\n}\n\n@NgModule({\n  declarations: [\n    AppComponent,\n  ],\n  imports: [\n    BrowserModule,\n    NgxLoadingXModule.forRoot(ngxLoadingXConfig)\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\n\nexport class AppModule { }\n\n```\n| Attributes | Type | Required | Default | Description |\n| :---         |     :---     |       :--- |  :---         |     :---      |\n|   `show`   |  boolean     |    optional    |  `false`   |     Determines the visibility of the loader    |\n| `bgLogoUrl`    | string      | optional    |    `(empty string)`    | Logo Url    |\n| `bgOpacity`    | number      | optional    |    `5`    | background opacity    |\n|   `bgBlur`   |  boolean     |    optional    |    `5`   |    blurred/frosted background    |\n| `bgLogoUrlPosition`    | number      | optional    |    `bottom-right`   | Logo position. available positions can be accessed via `POSITION`   |\n| `bgLogoUrlSize`    | number      | optional    |    `100`   | Logo size   |\n| `spinnerType`    | string      | optional    |    `wandering-cubes`   | Spinner animation type. available types can be accessed via `SPINNER`  |\n| `spinnerSize`    | number      | optional    |   ` 120`   | Spinner size   |\n| `spinnerColor`    | string      | optional    |    `#dd1b16`   | Spinner color   |\n| `spinnerPosition`    | string      | optional    |    `center-center`   | Spinner position. available positions can be accessed via `POSITION`   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilvareal%2Fngx-loading-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilvareal%2Fngx-loading-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilvareal%2Fngx-loading-x/lists"}