weixin_33695450 2016-04-30 20:34 采纳率: 0%
浏览 5

Angular提供程序和$ http

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?

  • 写回答

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.

    评论

报告相同问题?