{"id":32263404,"url":"https://github.com/500tech/angular-modal-progress-bar","last_synced_at":"2025-10-22T20:55:22.185Z","repository":{"id":23947549,"uuid":"27329217","full_name":"500tech/angular-modal-progress-bar","owner":"500tech","description":null,"archived":false,"fork":false,"pushed_at":"2017-06-01T16:17:28.000Z","size":132,"stargazers_count":5,"open_issues_count":4,"forks_count":1,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-10-22T20:55:08.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/500tech.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":"2014-11-30T08:18:40.000Z","updated_at":"2018-08-23T00:54:26.000Z","dependencies_parsed_at":"2022-07-25T13:52:07.165Z","dependency_job_id":null,"html_url":"https://github.com/500tech/angular-modal-progress-bar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/500tech/angular-modal-progress-bar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Fangular-modal-progress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Fangular-modal-progress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Fangular-modal-progress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Fangular-modal-progress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/500tech","download_url":"https://codeload.github.com/500tech/angular-modal-progress-bar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/500tech%2Fangular-modal-progress-bar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280511639,"owners_count":26343102,"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-22T02:00:06.515Z","response_time":63,"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":[],"created_at":"2025-10-22T20:55:17.898Z","updated_at":"2025-10-22T20:55:22.180Z","avatar_url":"https://github.com/500tech.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-modal-progress-bar\n\nA modal with progression bar that fills up with known duration.\n\n\n## Install\n\nInstall via bower:\n\n```bash\nbower install --save angular-modal-progress-bar\n```\n\nAdd to index.html:\n\n```html\n\u003clink rel=\"stylesheet\" href=\"bower_components/angular-modal-progress-bar/dist/angular-modal-progress-bar.css\"\u003e\n\u003cscript type=\"text/javascript\" src=\"bower_components/angular-modal-progress-bar/dist/angular-modal-progress-bar.js\"\u003e\u003c/script\u003e\n```\n\nInject ``'500tech.modal-progress-bar'`` into your main module:\n\n```javascript\nangular.module('App', [\n  // ... other dependencies\n  '500tech.modal-progress-bar'\n])\n```\n\n## Usage\n\nAdd ``\u003cprogress-modal\u003e\u003c/progress-modal\u003e`` directive to your main html file.\n\nLoader service gets a list of states, each with phrases that will be shown and duration for progress bar to be filled:\n\n```javascript\napp.run(['$scope', 'Loader', function($scope, Loader) {\n  Loader.states = {\n    mainScreen: {\n      phrases: [\n        'Loading application',\n        'Preparing markup'\n      ],\n      duration: 3\n    },\n    checkout: {\n      phrases: [\n        'Checking billing information',\n        'Sending data to local vendor',\n        'Finalizing'\n      ],\n      duration: 5\n    }\n  }\n}]);\n```\n\nNow when you want to show the progression modal, just call ```Loader.start('stateName')``` to start it and Loader.end() on another controller to stop it. The progress bar will fill up in a number of seconds you passed in the states object.\n\n\n## License\n\nMIT Licensed\n\nCopyright (c) 2014, [500Tech](http://500tech.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F500tech%2Fangular-modal-progress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F500tech%2Fangular-modal-progress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F500tech%2Fangular-modal-progress-bar/lists"}