{"id":21318696,"url":"https://github.com/jutaz/angular-quasar","last_synced_at":"2025-10-07T07:46:35.349Z","repository":{"id":24587057,"uuid":"27995167","full_name":"jutaz/angular-quasar","owner":"jutaz","description":"Enhanced angular $q on steroids","archived":false,"fork":false,"pushed_at":"2018-06-08T19:02:25.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-10T03:28:06.872Z","etag":null,"topics":["angular","javascript","promise-chain"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jutaz.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":"2014-12-14T13:30:46.000Z","updated_at":"2021-10-07T01:27:07.000Z","dependencies_parsed_at":"2022-09-09T19:00:58.774Z","dependency_job_id":null,"html_url":"https://github.com/jutaz/angular-quasar","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutaz%2Fangular-quasar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutaz%2Fangular-quasar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutaz%2Fangular-quasar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jutaz%2Fangular-quasar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jutaz","download_url":"https://codeload.github.com/jutaz/angular-quasar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225788340,"owners_count":17524257,"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","javascript","promise-chain"],"created_at":"2024-11-21T19:20:21.356Z","updated_at":"2025-10-07T07:46:30.330Z","avatar_url":"https://github.com/jutaz.png","language":"JavaScript","readme":"angular-quasar\n==============\n\nEnhanced angular $q on steroids.\n\n## API\n\n### .fcall\n\nAllows to create new promise chain\n\n```js\n$q.fcall(function () {\n  // Do things\n}).then(function () {\n  // More things\n});\n```\n\n### .success\n\nPasses `$http`\\`s `.success` response down the chain.\n\n```js\n$q.fcall(function() {\n  $http.get('http://cutekittens.com/meow');\n}).success(function (data, status, headers, config) {\n  // Oh, the hard work here!\n});\n```\n\n### .error\n\nPasses `$http`\\`s `.error` response down the chain.\n\n```js\n$q.fcall(function() {\n  $http.get('http://cutekittens.com/meow');\n}).error(function (data, status, headers, config) {\n  // Oh, error happened!\n});\n```\n\n### .delay or .timeout\n\nIntegrates timeout right into promise chain!\n\n```js\n$q.fcall(function () {\n  // Whatever hard work here\n}).delay(function () {\n  // Executed after 500ms\n}, 500).then(function() {\n  // Executed normally\n});\n```\n\n### .all\n\nRemoves need to do separate `return $q.all(Array)` call.\n\n```js\n$q.fcall(function () {\n  return [Promise, Promise, Promise];\n}).all(function (resolved) {\n  // `resolved` contains resolved promises array\n});\n```\n\n### .spread\n\nSpreads array items as arguments.\n\n```js\n$q.fcall(function () {\n  return ['a', 'b', 'c'];\n}).all(function (a, b, c) {\n  // `a`, `b`, `c` contain their respective values\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjutaz%2Fangular-quasar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjutaz%2Fangular-quasar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjutaz%2Fangular-quasar/lists"}