ng-flow

Slow performance in hybrid AngularJS and Angular application in Safari

…衆ロ難τιáo~ 提交于 2020-01-24 10:12:04
问题 I have started recently the migration of an AngularJS application to Angular 4 using the upgrade module. One of my AngularJS directives uses a third party library (ngFlow) to upload files using XMLHttpRequest.send() . When running in hybrid mode, uploads work fine both, in Chrome and in Firefox. However, in Safari the app becomes very slow during an upload and the browser process reaches 100% CPU used. Using Safari web tools, I see that there is a lot of calls to globalZoneAwareCallback from

ng-flow upload programmatically

风流意气都作罢 提交于 2019-12-09 15:46:08
问题 I am currently using ng-flow to perform a file upload. It appears that the default action of selecting a file is to upload immediately. I'd like to override this so that files are selected and only uploaded on button click. Perhaps I am misreading the documentation, but thus far I have the following: <div flow-init="{target: '/upload'}" flow-files-submitted="$flow.upload()" flow-file-success="$file.msg = $message"> <input type="file" flow-btn/> Input OR Other element as upload button <span

ng-flow upload programmatically

北战南征 提交于 2019-12-04 03:03:54
I am currently using ng-flow to perform a file upload. It appears that the default action of selecting a file is to upload immediately. I'd like to override this so that files are selected and only uploaded on button click. Perhaps I am misreading the documentation, but thus far I have the following: <div flow-init="{target: '/upload'}" flow-files-submitted="$flow.upload()" flow-file-success="$file.msg = $message"> <input type="file" flow-btn/> Input OR Other element as upload button <span class="btn" flow-btn>Upload File</span> <table> <tr ng-repeat="file in $flow.files"> <td>{{$index+1}}</td