我想實現 - https://github.com/spartaksun/ng2-file-uploader#backend-example-using-plain-php文件上傳與角
我已經安裝NG2文件的上傳,在我component.ts
我試圖添加代碼引導,當我加入directives: [UPLOAD_DIRECTIVES]
,它給我錯誤 -
@Component({
selector: 'demo-app',
templateUrl: 'app/demo.html',
directives: [UPLOAD_DIRECTIVES],
})
使用這個insted-of https://www.npmjs.com/package/ng2-file-upload –
從哪裏得到的PHP代碼 – user2828442
看演示:https://github.com/valor-software/ ng2-file-upload/blob/master/demo/components/file-upload/simple-demo.ts –