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

Binding lx-file-input change attribute #25

Closed
kwiky opened this issue Dec 8, 2014 · 2 comments
Closed

Binding lx-file-input change attribute #25

kwiky opened this issue Dec 8, 2014 · 2 comments

Comments

@kwiky
Copy link

kwiky commented Dec 8, 2014

How can i bind the lx-file-input change attribute on this line :
https://github.com/lumapps/lumX/blob/master/js/file-input/js/lumx.file_input_directive.js#L36
in order to upload the choosen picture ?

I've tried many stuff but no one is working

<lx-file-input label="Modifier l'image..." change="upload"></lx-file-input>
$scope.upload = function(element) {
        console.log(element);
};
@pampul
Copy link
Contributor

pampul commented Dec 9, 2014

Thank you for reporting this issue.

Did you tried:

<lx-file-input label="Modifier l'image..." change="upload(e)"></lx-file-input>

@kwiky
Copy link
Author

kwiky commented Dec 9, 2014

It works :D Thanks !

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