Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directive not recognized even though Module is included #1265

Open
edthompson-nf opened this issue Nov 22, 2023 · 1 comment
Open

Directive not recognized even though Module is included #1265

edthompson-nf opened this issue Nov 22, 2023 · 1 comment

Comments

@edthompson-nf
Copy link

I am having this issue after upgrading from version 1.4 to version 5

 error NG8002: Can't bind to 'uploader' since it isn't a known property of 'div'.
<div (onFileDrop)="fileDrop()" [uploader]="uploader" class="uploadArea" ng2FileDrop>

The Module has been included:

import {FileUploadModule} from 'ng2-file-upload';

The Component:

@Component({
    selector: 'app-wizard',
    templateUrl: './wizard.component.html',
    styleUrls: ['./wizard.component.scss'],
})
export class WizardComponent implements OnInit, OnDestroy {
    @ViewChild('fileInput', { static: true }) fileInput: ElementRef;
    @ViewChild('saveNetworkAsCode', { static: true }) saveNetworkAsCode;

    // create an empty uploader until we have an actual URL
    uploader: FileUploader;
...

Not sure whats going on, and not sure if I "migrated" correctly

@klui
Copy link

klui commented Feb 6, 2024

I'm having exactly the same issue - also after upgrading from 1.4 to 5. Did you find a solution by now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants