https://github.com/myopenresources/cc-error-src-demo
https://github.com/myopenresources/cc-error-src-demo
angular angular8
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/myopenresources/cc-error-src-demo
- Owner: myopenresources
- License: mit
- Created: 2019-07-14T08:21:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T07:45:46.000Z (about 3 years ago)
- Last Synced: 2025-02-16T08:44:25.159Z (11 months ago)
- Topics: angular, angular8
- Language: TypeScript
- Size: 3.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# angular版 错误URL默认值指令ccErrorSrc
## 安装
npm install cc-error-src --save 或 yarn add cc-error-src
## 使用
```javascript
// 业务模块
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { ErrorSrcModule } from 'cc-error-src';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ErrorSrcModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
//业务html
```
## 参数
1. errSrc:默认图片地址