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

Events not work #199

Open
meysam001 opened this issue May 6, 2018 · 1 comment
Open

Events not work #199

meysam001 opened this issue May 6, 2018 · 1 comment

Comments

@meysam001
Copy link

Hello
I'm trying to use events like this:
html:

<image-upload (removed)="onRemoved($event)" (uploadFinished)="onUploadFinished($event)" (uploadStateChanged)="onUploadStateChanged($event)"></image-upload>

in my component:

  onUploadFinished(file: FileHolder) {
    console.log(file);
  }

  onRemoved(file: FileHolder) {
    console.log(file);
  }

  onUploadStateChanged(state: boolean) {
    console.log(state);
  }

When I select an image, I give some errors on browser console:
image

@DanG-Mergin
Copy link

I'm not sure if you ever resolved this but I looked through the change log and:

Typescript signature: [name: string]: any;

  • api: onFileUploadFinish renamed to uploadFinished
  • api: onRemove renamed to removed
  • api: isPending renamed to uploadStateChanged

This resolved the issue for me.

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