Hi,
Experimenting with angular for a couple of days now, and I'm trying to wrap the
jqeury.file.upload plugin in an Angular directive, as shown in this (non-working)
fiddle :
http://jsfiddle.net/k6EZX/8/It's working, but I've got some questions :
- although I can update the value of the fileName of the uploaded file in the model
(scope.fileName =
file.name), the form containing it is not marked dirty. Why ?
- I'd rather make the jquery part of the plugin dependant on the scope of the
rirective. so in the link-function of the directive, instead of
$('#fileupload').fileupload() {...}
I'd want to do something like
$(elm).fileupload()
or
$('#fileupload', scope).fileupload();
Is that possible ? I couldn't get it to work. Any pointers appreciated, I couldn't
figure this out through the documentation. Thanks !