{"id":23790091,"url":"https://github.com/hash-bang/angular-async-chainable","last_synced_at":"2026-05-13T13:49:04.961Z","repository":{"id":36646740,"uuid":"40953028","full_name":"hash-bang/angular-async-chainable","owner":"hash-bang","description":"Pre-built async-chainable NPM repo suitable for use within regular JavaScript or AngularJS on the frontend","archived":false,"fork":false,"pushed_at":"2016-04-12T03:41:33.000Z","size":142,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T18:04:37.402Z","etag":null,"topics":["angular","async-chainable","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/hash-bang.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":"2015-08-18T05:41:43.000Z","updated_at":"2016-04-12T03:36:14.000Z","dependencies_parsed_at":"2022-08-30T05:32:42.928Z","dependency_job_id":null,"html_url":"https://github.com/hash-bang/angular-async-chainable","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/hash-bang%2Fangular-async-chainable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hash-bang%2Fangular-async-chainable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hash-bang%2Fangular-async-chainable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hash-bang%2Fangular-async-chainable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hash-bang","download_url":"https://codeload.github.com/hash-bang/angular-async-chainable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240018689,"owners_count":19734872,"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","async-chainable","javascript"],"created_at":"2025-01-01T17:18:21.633Z","updated_at":"2026-04-17T23:30:21.976Z","avatar_url":"https://github.com/hash-bang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"angular-async-chainable\n=======================\nPre-built async-chainable NPM repo suitable for use within regular JavaScript or AngularJS on the frontend.\n\n\nSee the main [async-chainable](https://github.com/hash-bang/async-chainable) documentation for how to use the module. This is just the frontend version.\n\n\nPlain JavaScript usage\n----------------------\n1. Install the component via Bower:\n\n\tbower install angular-async-chainable\n\n2. Include the following files in your HTML header:\n\n\t\u003cscript src=\"/bower_components/angular-async-chainable/async-chainable.js\"\u003e\u003c/script\u003e\n\n\nYou can now use in your regular JavaScript code via the gloabl `asyncChainable()` function:\n\n\n\tasyncChainable()\n\t\t.then(function(next) {\n\t\t\tconsole.log('Hello');\n\t\t\tnext();\n\t\t})\n\t\t.then(function(next) {\n\t\t\tconsole.log('World');\n\t\t\tnext();\n\t\t})\n\t\t.end();\n\n\nUse within AngularJS\n--------------------\n1. Install the component via Bower:\n\n\tbower install angular-async-chainable\n\n2. Include the following files in your HTML header:\n\n\t\u003cscript src=\"/bower_components/angular-async-chainable/async-chainable.js\"\u003e\u003c/script\u003e\n\t\u003cscript src=\"/bower_components/angular-async-chainable/angular-async-chainable.js\"\u003e\u003c/script\u003e\n\n3. Setup the component in your Angular app:\n\n\tangular.module('app', ['angular-async-chainable']);\n\n4. Require the `$async` service in any controller / component to use:\n\n\tapp.controller('myController', $async) {\n\t\tasyncChainable()\n\t\t\t.then(function(next) {\n\t\t\t\tconsole.log('Hello');\n\t\t\t\tnext();\n\t\t\t})\n\t\t\t.then(function(next) {\n\t\t\t\tconsole.log('World');\n\t\t\t\tnext();\n\t\t\t})\n\t\t\t.end();\n\t});\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhash-bang%2Fangular-async-chainable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhash-bang%2Fangular-async-chainable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhash-bang%2Fangular-async-chainable/lists"}