{"id":21377709,"url":"https://github.com/quobject/qs-angular2-busy","last_synced_at":"2025-07-13T10:31:51.104Z","repository":{"id":65478896,"uuid":"139294018","full_name":"Quobject/qs-angular2-busy","owner":"Quobject","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-29T08:13:19.000Z","size":127,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-13T01:11:19.990Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Quobject.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}},"created_at":"2018-07-01T02:15:37.000Z","updated_at":"2019-01-05T01:21:53.000Z","dependencies_parsed_at":"2023-01-25T08:05:15.248Z","dependency_job_id":null,"html_url":"https://github.com/Quobject/qs-angular2-busy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quobject%2Fqs-angular2-busy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quobject%2Fqs-angular2-busy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quobject%2Fqs-angular2-busy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quobject%2Fqs-angular2-busy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quobject","download_url":"https://codeload.github.com/Quobject/qs-angular2-busy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225873094,"owners_count":17537553,"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-22T09:23:25.150Z","updated_at":"2024-11-22T09:23:25.597Z","avatar_url":"https://github.com/Quobject.png","language":"TypeScript","readme":"# qs-angular2-busy\n\nfrom https://github.com/devyumao/angular2-busy\n\ncreated for Angular 6 using \n[Library support in Angular CLI 6](https://github.com/angular/angular-cli/wiki/stories-create-library)\n\n[npm](https://www.npmjs.com/package/qs-angular2-busy)\n\n```bash\nnpm i qs-angular2-busy\n```\n\n### angular.json\n```json\n...\n    \"styles\": [\n        \"src/styles.css\",\n        \"node_modules/qs-angular2-busy/styles/busy.css\"\n      ],\n...\n```\n\n### app.module.ts\n```ts\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\n\nimport { AppComponent } from './app.component';\nimport { QsAngular2BusyModule } from 'qs-angular2-busy';\n\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    BrowserAnimationsModule,\n    QsAngular2BusyModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n```\n\n### app.component.ts\n```ts\nimport { Component } from '@angular/core';\nimport { QsAngular2BusyModule, BusyConfig } from 'qs-angular2-busy';\n\nimport { of } from 'rxjs';\nimport { delay } from 'rxjs/operators';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n  title = 'app';  \n  busy: Promise\u003cany\u003e;\n\n  ngOnInit() {\n    this.busy = AppComponent.PromiseDelay(2000);\n  }\n\n  public static PromiseDelay(timeout = 1000): Promise\u003cany\u003e {\n    return of().pipe(delay(timeout)).toPromise();\n  }\n}\n```\n\n### app.component.html\n```html\n\u003cdiv [ngBusy]=\"{busy: busy, message: 'Loading...', backdrop: false, delay: 200, minDuration: 600}\"\u003e\n  \u003cdiv style=\"text-align:center\"\u003e\n    \u003ch1\u003e\n      Welcome\n    \u003c/h1\u003e\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquobject%2Fqs-angular2-busy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquobject%2Fqs-angular2-busy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquobject%2Fqs-angular2-busy/lists"}