ng4-qiniu
v1.0.7
Published
## script ``` <script src="assets/js/moxie.min.js"></script> <script src="assets/js/plupload.min.js"></script> <script src="assets/js/qiniu.min.js"></script> ```
Downloads
5
Readme
Ng4Qiniu
script
<script src="assets/js/moxie.min.js"></script>
<script src="assets/js/plupload.min.js"></script>
<script src="assets/js/qiniu.min.js"></script>
use
providers: [
{
provide: Ng4ConfigService,
useFactory: ()=>{
let domain = ''; // 七牛独立域名
let token = ''; // 七牛token
return new Ng4ConfigService(domain,token)
}
}
]
ng4
<ng4-qiniu (FileUploaded)="FileUploaded($event)"></ng4-qiniu>
ts
FileUploaded(e){
console.log(e);
}