if in provider $get I inject $http and do sam AJAX (for configuration) do I have sure any operation on this service will be done after requests end?
Angular提供程序和$ http
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
weixin_33709590 2016-05-01 03:38关注$http returns a promise. If you want to execute some code on receiving a response please put it inside the then method callback of said promise.
解决 无用评论 打赏 举报