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
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
add to app.module.ts this
import { FileSelectDirective } from 'ng2-file-upload';
@NgModule({
imports: [
...
],
declarations: [
FileSelectDirective
],
providers: [
...
],
bootstrap: [
App,
],
})
https://github.com/valor-software/ng2-file-upload/issues/418#issuecomment-249865170
Or try to import FIleUploadModule to an each parent module
import { FIleUploadModule } from 'ng2-file-upload';
imports: [
FIleUploadModule,
..........,
........,
......,
]
It should work.