I want to create an upload-form using ng2-file-upload but fail, getting the following error:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
Can't bind to 'uploader' since it isn't a known property of 'input'. ("<input type="file" ng2FileSelect [ERROR ->][uploader]="uploader"/>")
Actually, this seems to be a common problem a lot of people out there encounter when using ng2-file-upload. Most of them solve it by importing FileUploadModule into their own module. So, I tried to do the same in my main.module.ts - without any success. I still get the same error message.
Is there anything else I might be missing?
4 Answer(s)
-
0
Hi @alexanderpilhar,
Can you try to add FileUploadModule to your admin module ?
-
0
Hi @ismcagdas,
FileUploadModule has already been imported to admin.module.ts and is used for change-profile-picture-modal.component as well as tenant-settings.component. I basically try to do something very similar to this for main.module.ts but just can't get it to work properly.
-
0
Oh, I just started the project the first time today and now everything works as expected. So it seems there was some sort of caching problem - though I did make sure to clear the cache a couple of times yesterday... Well, next time I will restart the whole browser just to be sure!
-
0
Thanks for sharing the result @alexanderpilhar.