An open API service indexing awesome lists of open source software.

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

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:默认图片地址