I suspect that you're misunderstanding what you should be doing, though Quite possible. So what I'm trying to do is create a file upload directive. Placed on a file input button it should onclick check if the file to be uploaded is image; fire an Ajax POST containg metadata and binary data of the image; show a thumbnail of an already uploaded image.
I figured it makes no sense to stuff all this functionality in one directive - there might be other places in the app that need (part of) this functioniality and besides I think it makes sense to have an utils service containing this functionality. So what would be the best way to handle this? Marc -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
