阅读背景:

Angular:如何在$ http请求成功之前推迟返回

来源:互联网 

In my main module I want to create a service that parses a json file and pushes the contents to an array, after I would like service to have the array be returned so it is easily accessible by any of the controllers. The issue is the function is running before the $http request is complete so it always returns an empty arrayIn my main module I want to create a service th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: