I've been trying to implement a upload controller in AngularJS and not sure if I can hook into the "progress" events so I can display upload progress.
I see a bunch of code on the Interwebs which indicate with a raw XHR I can hook into a "progress" event (or perhaps this is normalized to the onprogress handler...).
Is there a way to do this with either $http or $resource?
I tried doing:
$scope.$on( 'progress', function() { console.log( "Got a progress event" ); } );
But, I don't see any indication this works.
I don't see documentation inside $http for this, nor in $resource.
I'm fine doing it by getting the raw XHR request, but I don't see a way to get this from $http either.
Any suggestions?
Chris