{"id":21511763,"url":"https://github.com/khumozin/ngx-progress-indicator","last_synced_at":"2025-03-17T15:23:09.484Z","repository":{"id":65374212,"uuid":"508008649","full_name":"Khumozin/ngx-progress-indicator","owner":"Khumozin","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-12T08:59:57.000Z","size":287,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T15:44:15.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Khumozin.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":"2022-06-27T17:49:36.000Z","updated_at":"2022-06-30T08:17:33.000Z","dependencies_parsed_at":"2025-01-24T01:40:48.677Z","dependency_job_id":"99a84c0c-056f-4319-a8d4-a8eadc54e279","html_url":"https://github.com/Khumozin/ngx-progress-indicator","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Khumozin%2Fngx-progress-indicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Khumozin%2Fngx-progress-indicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Khumozin%2Fngx-progress-indicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Khumozin%2Fngx-progress-indicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Khumozin","download_url":"https://codeload.github.com/Khumozin/ngx-progress-indicator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056432,"owners_count":20390720,"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":[],"created_at":"2024-11-23T22:16:54.070Z","updated_at":"2025-03-17T15:23:09.464Z","avatar_url":"https://github.com/Khumozin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgxProgressIndicator\n\nA progress indicator library for [Angular](https://angular.io/) apps.\n\n## Installation\n\nYou can install it through **Angular CLI**:\n\n```bash\nng add ngx-progress-indicator\n```\n\nor with **npm**:\n\n```bash\n# For Angular version 13\nnpm i ngx-progress-indicator@2\n\n# For Angular version 14\nnpm i ngx-progress-indicator@3\n\n# For Angular version 15\nnpm i ngx-progress-indicator@4\n\n# For Angular version 16\nnpm i ngx-progress-indicator@5\n```\n\nWhen you install using **npm**, you will also need to import `NgxProgressIndicatorModule` in your `app.module`. You can also set global NgxProgressIndicator config ([`Partial\u003cNgxProgressIndicatorConfig\u003e`](#ngxprogressindicatorconfig)) here.:\n\n```typescript\nimport { NgxProgressIndicatorModule } from 'ngx-progress-indicator';\n@NgModule({\n  imports: [NgxProgressIndicatorModule.forRoot({ color: '#0083ff' })],\n})\nclass AppModule {}\n```\n\n## Basic Usage\n\n```typescript\nimport { Component } from '@angular/core';\nimport { NgxProgressIndicatorService } from 'ngx-progress-indicator';\nimport { interval, take } from 'rxjs';\n\n@Component({\n  ...\n})\nexport class AppComponent {\n\n    constructor(private service: NgxProgressIndicatorService) {\n        // show ngx progress indicator\n        this.service.start();\n\n        interval(3000)\n            .pipe(take(1))\n            .subscribe({\n                next: () =\u003e this.service.finish() // hide ngx progress indicator after 3 seconds\n            });\n    }\n\n}\n```\n\n## NgxProgressIndicatorConfig\n\n| Name         | Type      | Description                                                       |\n| ------------ | --------- | ----------------------------------------------------------------- |\n| size | `number` or `string` | The size (height) of the progress indicator. Numeric values get converted to px.\u003cbr\u003e_Default: false_ |\n| color | `string` | Color of the progress bar. Also used for the glow around the bar.\u003cbr\u003e_Default: false_ |\n| className | `string` | Class name used for the progress bar element.\u003cbr\u003e_Default: false_ |\n| delay | `number` | How many milliseconds to wait before the progress bar animation starts after calling .start().\u003cbr\u003e_Default: false_ |\n\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhumozin%2Fngx-progress-indicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhumozin%2Fngx-progress-indicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhumozin%2Fngx-progress-indicator/lists"}