{"id":18485875,"url":"https://github.com/720kb/angular-downloader","last_synced_at":"2025-04-08T19:32:57.879Z","repository":{"id":21231097,"uuid":"24546363","full_name":"720kb/angular-downloader","owner":"720kb","description":"Angular Downloader is an angularjs directive that enables you to manage browser download - https://720kb.github.io/angular-downloader","archived":false,"fork":false,"pushed_at":"2017-04-19T08:07:50.000Z","size":244,"stargazers_count":16,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-23T17:45:50.569Z","etag":null,"topics":["angular","angular-directives","angularjs","directive","download","downloader"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Microsoft/fastlane-plugin-mobile_center","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/720kb.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-09-28T00:49:01.000Z","updated_at":"2018-07-09T20:25:52.000Z","dependencies_parsed_at":"2022-08-30T14:51:10.109Z","dependency_job_id":null,"html_url":"https://github.com/720kb/angular-downloader","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/720kb%2Fangular-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/720kb%2Fangular-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/720kb%2Fangular-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/720kb%2Fangular-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/720kb","download_url":"https://codeload.github.com/720kb/angular-downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912789,"owners_count":21017045,"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","angular-directives","angularjs","directive","download","downloader"],"created_at":"2024-11-06T12:46:58.910Z","updated_at":"2025-04-08T19:32:57.626Z","avatar_url":"https://github.com/720kb.png","language":"JavaScript","readme":"Angular Downloader\n==================\n\n\nAngular Downloader is an angularjs directive that enables you to manage browser download.\n\n\nThe angular downloader is developed by [720kb](http://720kb.net).\n\n## Requirements\n\nAngularJS v1.2+\n\n### Example\n\n#### [Live demo](https://720kb.github.io/angular-downloader)\n\n### Browser support\n\nChrome | Firefox | IE | Opera | Safari\n--- | --- | --- | --- | --- |\n ✔ | ✔ | NO | ✔ | NO |\n\n### Load\n\nTo use the directive, include the javascript file of angular downloader in your web page:\n\n```html\n\u003c!DOCTYPE HTML\u003e\n\u003chtml\u003e\n\u003cbody ng-app=\"app\"\u003e\n  //.....\n  \u003cscript src=\"src/js/angular-downloader.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Install\n\n#### Bower\n\n```\n$ bower install angular-downloader --save\n```\n_then load the js files in your html_\n\n### Add module dependency\n\nAdd the ```720kb.downloader``` module dependency\n\n```js\nangular.module('app', [\n  '720kb.downloader\n ]);\n```\n\nCall the directive wherever you want in your html page\n\n```html\n\u003cbutton type=\"button\" \nng-click=\"downloadStuffFromAjax()\" \ndownloader=\"valueThatWillBePopulated\" \ndownloader-classes=\"btn btn-medium center-content bg-success color-white radius3\" \ndownloader-custom-text=\"Download Ready!\" \ndownloader-reset=\"resetDownload\"\u003e\n  Download Now!\n\u003c/button\u003e\n```\n## Options\nAngular downloader allows you to use some options via `attribute` datas.\n\nPassing values from the result of an XHR to the directive is done watching a variable in the scope. That name must be provided in the `downloader` attribute value.\n\nThe style for the download button is provided by the `downloader-classes` attribute value, you concatenate as the class attribute the css classes to assign to download button.\n\nCustom text can be assigned to download button via the `downloader-custom-text` attribute value.\n\nIf the button that invokes the XHR is needed again `downloader-reset` can be assigned to a boolean variable.\n\n\n## Contributing\n\nWe will be much grateful if you help us making this project to grow up.\nFeel free to contribute by forking, opening issues, pull requests etc.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Dario Andrei, Filippo Oretti\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit 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 Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F720kb%2Fangular-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F720kb%2Fangular-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F720kb%2Fangular-downloader/lists"}