ngx-uploader: Ionic 2 rc3 error "Can't bind to 'options'"

Everything worked fine, after update gives this error.

Can't bind to 'options' since it isn't a known property of 'div'. ("
                <ion-item>
                    <div ngFileDrop
                         [ERROR ->][options]="profileOptions"

template.html

                        <div ngFileDrop
                             [ngClass]="{'file-over': protectionDropZoneOver}"
                             [options]="protectionOptions"
                             (onUpload)="handleUpload($event)"
                             (onFileOver)="fileOverBaseProtection($event)"
                             class="image-drop-zone">

app.module.ts

import { Ng2UploaderModule } from 'ng2-uploader';
...
@NgModule({
  imports: [
    IonicModule.forRoot(MyApp),
    Ng2UploaderModule,
    BrowserModule,
    FormsModule,
    MomentModule,
    AngularFireModule.initializeApp(firebaseConfig, myFirebaseAuthConfig),
  ],
....

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 31 (24 by maintainers)

Most upvoted comments

okay 😃 I’ll check it out now