0

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 - See error

@Component({
  selector: 'demo-app',
  templateUrl: 'app/demo.html',
  directives: [UPLOAD_DIRECTIVES],
})
Paolo Forgia
  • 6,572
  • 8
  • 46
  • 58
user2828442
  • 2,415
  • 7
  • 57
  • 105

1 Answers1

0

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.

Vivek Doshi
  • 56,649
  • 12
  • 110
  • 122