{"id":20538566,"url":"https://github.com/slavede/ng-ts-spinner","last_synced_at":"2025-04-14T07:50:54.357Z","repository":{"id":23245318,"uuid":"98523179","full_name":"slavede/ng-ts-spinner","owner":"slavede","description":"Angular (typescript) Spinner. Wrapper around spinner: http://spin.js.org/","archived":false,"fork":false,"pushed_at":"2023-03-02T00:42:11.000Z","size":2335,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T07:20:31.388Z","etag":null,"topics":["angular","spin","spinjs","spinner","typescript","wrapper"],"latest_commit_sha":null,"homepage":"","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/slavede.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":"2017-07-27T10:21:42.000Z","updated_at":"2022-07-20T13:00:56.000Z","dependencies_parsed_at":"2024-11-16T00:47:05.701Z","dependency_job_id":"4ae1a4c1-de9e-4142-ac7b-1697d992091e","html_url":"https://github.com/slavede/ng-ts-spinner","commit_stats":{"total_commits":58,"total_committers":4,"mean_commits":14.5,"dds":0.3448275862068966,"last_synced_commit":"83fd39f9cb5df36089f53aae0428f86b1e311451"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavede%2Fng-ts-spinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavede%2Fng-ts-spinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavede%2Fng-ts-spinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slavede%2Fng-ts-spinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slavede","download_url":"https://codeload.github.com/slavede/ng-ts-spinner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248844049,"owners_count":21170486,"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","spin","spinjs","spinner","typescript","wrapper"],"created_at":"2024-11-16T00:47:02.900Z","updated_at":"2025-04-14T07:50:54.325Z","avatar_url":"https://github.com/slavede.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NgTsSpinner\n\nAngular (typescript) Spinner. Wrapper around spinner: http://spin.js.org/ (\u003c3.0.0 version).\n\n## Installation\n\nIt has dependency on spin.js. It doesn't include it in bundle so you have to isntall it yourself (\u003c3.0.0 until #3 is fixed).\n\n```\nnpm install spin.js@2.x --save\nnpm install ng-ts-spinner --save\n```\n\n### Angular CLI\n\nIn case you are using Angular CLI, add spin.js (it will be downloaded together with ng-ts-spinner module) to your scripts path:\n\n`\"scripts\": [\"../node_modules/spin.js/spin.min.js\"]`\n\n## Usage\n\n### Import module\n\n```\nimport { NgTsSpinnerModule } from 'ng-ts-spinner';\n. . .\n@NgModule({\n  . . .\n  imports : [\n    . . .\n    NgTsSpinnerModule\n  ]\n```\n\n### Use component\n```\n  \u003cdiv ng-ts-spinner [spinOn]=\"loadingInProgress\" [options]=\"spinnerOptions\"\u003e\n    \u003cdiv\u003eEverything here will be under the spinner\u003c/div\u003e\n  \u003c/div\u003e\n```\n\n#### Properties\n**spinOn** - when set to true, spinner spins, when false, spinner is removed\n\n**overlayWhileSpin** - if true, it will display overlay, making everything non-clickable where it is spinning (make sure parent element has positioning set)\n\n**spinnerOptions** - options based on options from http://spin.js.org/. It can be empty, it will use defaults\n\nWhen changing spinnerOptions, spinner should be stopped, and then again spin to apply changes of the options.\n\n\n#### Release notes\n\n##### 1.7.0\n**Breaking change**: Added support for Angular6+. Now only support Angular6+, for below version, use 1.6.x\n\n##### 1.6.0\n\n* New way of installing dependency. **Spin.js has to be installed manually** (since npm3+ doesn't install dependency automatically).\n\n##### 1.5.0\n\n**BREAKING CHANGE**: Change the way you import module to:\n\n```ts\nimport { NgTsSpinnerModule } from 'ng-ts-spinner';\n```\n\n##### 1.3.0\n* Added support for overlayWhileSpin\n* Added index.ts to have nicer import (only name of the module)\n\n##### 1.2.0\n* Restricted spin.js dependency to be under 3.0.0 because 3.0.0 removed spin.min.js.\n\n##### 1.0.1 \n* Spinner doesn't add extra div to the placeholder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavede%2Fng-ts-spinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslavede%2Fng-ts-spinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslavede%2Fng-ts-spinner/lists"}