I am trying to implement - https://github.com/spartaksun/ng2-file-uploader#backend-example-using-plain-php
I have installed ng2-file-uploader , in my component.ts
i am trying to add the code as guided, when i am adding directives: [UPLOAD_DIRECTIVES]
, it is giving me error -
@Component({
selector: 'demo-app',
templateUrl: 'app/demo.html',
directives: [UPLOAD_DIRECTIVES],
})
Please read latest doc from angular 2
directives is no longer Metadata Properties of @Component.
Please read : https://angular.io/docs/ts/latest/api/core/index/Component-decorator.html
Note : The plugin you are trying to use is 1 Year Old, so it must be using angular beta version not the final one.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.