{"id":29142434,"url":"https://github.com/think2011/ng-copy","last_synced_at":"2025-10-05T22:54:48.449Z","repository":{"id":76615855,"uuid":"44041393","full_name":"think2011/ng-copy","owner":"think2011","description":"对ZeroClipboard的angular封装，不同的是使用简单以及支持HTML复制","archived":false,"fork":false,"pushed_at":"2015-10-11T06:20:01.000Z","size":200,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-30T19:52:57.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/think2011.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":"2015-10-11T06:12:19.000Z","updated_at":"2019-03-07T09:23:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f1796ea-f585-48fe-bd78-5e12ee68b7d2","html_url":"https://github.com/think2011/ng-copy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/think2011/ng-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/think2011%2Fng-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/think2011%2Fng-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/think2011%2Fng-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/think2011%2Fng-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/think2011","download_url":"https://codeload.github.com/think2011/ng-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/think2011%2Fng-copy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278532354,"owners_count":26002346,"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-05T02:00:06.059Z","response_time":54,"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-06-30T19:37:36.521Z","updated_at":"2025-10-05T22:54:48.432Z","avatar_url":"https://github.com/think2011.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ng-copy\n对ZeroClipboard的angular封装，不同的是使用简单以及支持HTML复制\n\n# 第一步\n引入文件：\n\n```html\n\u003cscript src=\"zeroclipboard/ZeroClipboard.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"ng-copy.js\"\u003e\u003c/script\u003e\n```\n\n并注入到对应的module\n\n```js\nangular.module('app', ['ng-copy']);\n```\n\n# 第二步\n\n```html\n\u003cbutton copy=\"model\" type=\"button\"\u003e复制\u003c/button\u003e\n```\n\n点击这个按钮后，粘贴就有对应的内容了。\n\n# 其他说明\n\n* 第二步里的 `model` 就是你自己命名的`$scope.model`，支持html。\n* 本repo自带了ZeroClipboard，不过理论上只要API不变，支持任何版本的ZeroClipboard。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthink2011%2Fng-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthink2011%2Fng-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthink2011%2Fng-copy/lists"}