You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 30, 2018. It is now read-only.
https://github.com/zensh/jsgen/blob/master/static/src/js/app.js#L31-L54
在这段代码里面使用了transformRequest和transformResponse来处理全局loading的问题, 这是一个好想法. 这个很像Jquery AjaxStart和AjaxStop. 不过在Angular里面, 这两个方法并不代表发起和结束ajax.
这里我只测试了transformResponse的情况, 如果返回的响应是没有内容或者报错, 将无法触发这个callback. 你可以尝试让服务端返回一个 204 或 500, 将重现这个问题.
这里 似乎提供了更好的解决方案.
The text was updated successfully, but these errors were encountered: