I'm migrating and app I started to develop in angular 1.5 to angular 2.3.
I have a section where the user can upload images and he can see the progress of the uploader. Originally I build it directly with XMLHTTPRequest, but in angular2 the page is being refreshed after the XMLHTTPRequest.
I post a question about that in Angular2 is refreshing the page when doing a post with XMLHttpRequest but as I didn't get any answer after several days, I'm trying to cahnge the approach.
Is it possible to submit a file using a post and get the percentage of the progress? I need to send it to a backend with an authorization header with a JWT token, so I'm not sure if the ng-upload package is useful for me.
[[All the code is in the shared link]] Angular2 is refreshing the page when doing a post with XMLHttpRequest