{"id":31788593,"url":"https://github.com/yiqu/ng-busy-watch","last_synced_at":"2026-05-16T17:13:36.752Z","repository":{"id":57321566,"uuid":"441730245","full_name":"yiqu/ng-busy-watch","owner":"yiqu","description":"⏱️ NgBusyWatch is used for displaying a loading indicator for a long-lived Observable or boolean. Unlike other busy libraries, NgBusyWatch will not wait till the Observable to  complete, instead NgBusyWatch will watch the long-lived Observable's value and show the loading indicator as long as the value is ever truthy. ","archived":false,"fork":false,"pushed_at":"2022-03-07T14:41:30.000Z","size":1929,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T09:59:52.670Z","etag":null,"topics":["angular","angularbusy","angularloading","busy","directive","loadingmask","loadmask","ng","ngbusy"],"latest_commit_sha":null,"homepage":"https://yiqu.github.io/ng-busy-watch/","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/yiqu.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}},"created_at":"2021-12-25T17:50:28.000Z","updated_at":"2023-03-08T13:14:11.000Z","dependencies_parsed_at":"2022-08-25T21:01:13.249Z","dependency_job_id":null,"html_url":"https://github.com/yiqu/ng-busy-watch","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yiqu/ng-busy-watch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiqu%2Fng-busy-watch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiqu%2Fng-busy-watch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiqu%2Fng-busy-watch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiqu%2Fng-busy-watch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiqu","download_url":"https://codeload.github.com/yiqu/ng-busy-watch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiqu%2Fng-busy-watch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004170,"owners_count":26083688,"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-10-10T02:00:06.843Z","response_time":62,"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","angularbusy","angularloading","busy","directive","loadingmask","loadmask","ng","ngbusy"],"created_at":"2025-10-10T14:24:10.540Z","updated_at":"2025-10-10T14:24:12.478Z","avatar_url":"https://github.com/yiqu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/yiqu/ng-busy-watch/master/projects/ng-busy-watch-app/src/assets/ex1.png\" width=\"300\" alt=\"NgBusy Watch\"\u003e\n  \u003cbr\u003e\n  \u003ch1\u003eng-busy-watch\u003c/h1\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ng-busy-watch\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/ng-busy-watch.svg\" alt=\"npm\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://app.travis-ci.com/github/yiqu/ng-busy-watch\"\u003e\n    \u003cimg src=\"https://app.travis-ci.com/yiqu/ng-busy-watch.svg?branch=master\" alt=\"travisci\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/ng-busy-watch\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dt/ng-busy-watch?color=%23006600\u0026logoColor=%23006600\" alt=\"codecov\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/div\u003e\n\nDEMO: https://yiqu.github.io/ng-busy-watch/\n\n## Features\n\n- Works for long-lived Observables. Loading indicator will be shown when value is evaluated to `true`, hide if `false`.\n- Will also take in a simple boolean value.\n- Customizable loading message.\n- Add your own CSS class to customize colors and background of loading indicator.\n\n## Dependencies\n\nLatest version available for each version of Angular\n\n| ngx-busy-watch | Angular     |\n| ---------- | ----------- |\n| 13.x.x     | 13.x.x      |\n| 10.x.x     | \u003c 13.x.x      |\n\n## Install\n\n```bash\nnpm install ng-busy-watch --save\n```\n\n## Usage\n\nUsing ng-busy-watch with `Subjects`:\n\n```typescript\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n  private busySubject: BehaviorSubject\u003cboolean\u003e = new BehaviorSubject\u003cboolean\u003e(false);\n  public busy$ = this.overAllBusyIndicator.asObservable();\n}\n```\n\n```html\n\u003cdiv\u003e\n  \u003cdiv *ngBusyWatch=\"busy$\" class=\"ex\"\u003e\n    ...\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nUsing ng-busy-watch with NgRx `selectors`:\n\n```typescript\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n  public loading$ = this.store.select(fromSelectors.isLoading);\n  constructor(private store: Store\u003cAppState\u003e) {\n  }\n}\n```\n\n```html\n\u003cdiv\u003e\n  \u003cdiv *ngBusyWatch=\"loading$\" class=\"ex\"\u003e\n    ... \n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nUsing ng-busy-watch with `Boolean`:\n\n```typescript\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n  public loading: boolean = true;\n}\n```\n\n```html\n\u003cdiv\u003e\n  \u003cdiv *ngBusyWatch=\"loading\" class=\"ex\"\u003e\n    ... \n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\n## Customizable Global Options\n| Option                  | Type    | Default                            | Description                                                                                                   |\n| ----------------------- | ------- | ---------------------------------- | ------------------------------------------------------------------ |\n| extraCssClass               | string  | empty                                  | Extra CSS class for loading indicator           |\n| message             | string | Please wait...                              | Loading indicator text                          |\n| showSpinner             | boolean  | true | Whether to show loading animation SVG                            |\n\n\n### Setting Global Options\n\nPass values to `NgBusyWatchModule.forRoot()`\n\n```typescript\n// root app NgModule\nimports: [\n  NgBusyWatchModule.forRoot({\n    extraCssClass: 'cool-css-class',\n    message: 'Loading..',\n    showSpinner: true\n  }),\n],\n```\n\nOr just leave it as `NgBusyWatchModule` to use its default values.\n\n```typescript\n// root app NgModule\nimports: [\n  NgBusyWatchModule\n],\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiqu%2Fng-busy-watch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiqu%2Fng-busy-watch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiqu%2Fng-busy-watch/lists"}