{"id":18430232,"url":"https://github.com/myopenresources/cc-error-src-demo","last_synced_at":"2026-05-01T04:41:36.624Z","repository":{"id":39468858,"uuid":"196811556","full_name":"myopenresources/cc-error-src-demo","owner":"myopenresources","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-07T07:45:46.000Z","size":3384,"stargazers_count":0,"open_issues_count":29,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T08:44:25.159Z","etag":null,"topics":["angular","angular8"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/myopenresources.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":"2019-07-14T08:21:54.000Z","updated_at":"2019-07-15T05:34:10.000Z","dependencies_parsed_at":"2023-02-06T15:01:01.402Z","dependency_job_id":null,"html_url":"https://github.com/myopenresources/cc-error-src-demo","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/myopenresources%2Fcc-error-src-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-error-src-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-error-src-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myopenresources%2Fcc-error-src-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myopenresources","download_url":"https://codeload.github.com/myopenresources/cc-error-src-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794565,"owners_count":21162613,"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","angular8"],"created_at":"2024-11-06T05:19:55.977Z","updated_at":"2026-05-01T04:41:31.604Z","avatar_url":"https://github.com/myopenresources.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular版 错误URL默认值指令ccErrorSrc\n\n## 安装\nnpm install cc-error-src --save 或 yarn add cc-error-src\n\n## 使用\n```javascript\n// 业务模块\nimport { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { ErrorSrcModule } from 'cc-error-src';\n\nimport { AppComponent } from './app.component';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [\n    BrowserModule,\n    ErrorSrcModule\n  ],\n  providers: [],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n\n\n//业务html\n\u003cdiv\u003e\n  \u003cimg src=\"./aaa.png\" ccErrorSrc errSrc=\"../assets/avatar.png\"\u003e\n\u003c/div\u003e\n\n\n```\n\n## 参数\n1. errSrc：默认图片地址\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyopenresources%2Fcc-error-src-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyopenresources%2Fcc-error-src-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyopenresources%2Fcc-error-src-demo/lists"}