Does anybody know how to work ng-required for input fields? 
I am trying but its not working.

On Monday, August 6, 2012 1:12:34 AM UTC-7, Patrick Aljord wrote:
>
> Hi,
>
> I'm trying to upload files with angularjs by listening the change event on 
> the file input. I have it working but it's kind of a hack.
>
> If I do this:
>
> <input ng-change="uploadFiles(this)" name="files_to_upload" type="file">
>
> Nothing happens, however if I change it to use regular onchange, it does 
> work and call my uploadFiles method:
>
> <input onchange="angular.element(this).scope().uploadFiles(this)" 
> name="files_to_upload" type="file">
>
> Any idea how to make it work with ng-change?
>
> Thanks in advance,
>
> Pat
>

-- 
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/d/optout.

Reply via email to