Angular 2: Can't bind to 'uploader' since it isn't a known property of 'input'

前端 未结 2 664
感动是毒
感动是毒 2020-12-30 04:48

Im trying to integrate ng2-file-upload module into my application.

And im getting this template error: Can\'t bind to \'uploader\' since it isn\'t a known property o

2条回答
  •  悲&欢浪女
    2020-12-30 05:11

    You need to import FileUploadModule in the module that declares the component using 'upload' which in your case would be category-items.module.ts

    category-items.module.ts

    import { CategoryItemsComponent } from './category-items.component';
    
    import { FileUploadModule } from "ng2-file-upload";   //Should import HERE
    
    imports: [  ...FileUploadModule ... ]   //RIGHT PLACE
    

提交回复
热议问题