Execute a function when select the file #859
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi;
I'm a new using your directive, I'm creating a module to upload pictures, but I want execute a function that call a service to upload the picture into the server.
My doubt is very simple, It's possible call a function after select the file?, I mean, when you choose the file in the command dialog and press OK, I want execute a function that get the file and send it to a service, this is possible?
regards.
I use ngDoCheck() for file type checking, you can use the same for uploading:
Hello,
Can you please explain where to call this function? I am also new to this module. Thanks
That's a component lifecycle hook. Google it
Thanks I got it :-)