阅读背景:

需要在$ stateProvider中执行resolve属性之前解析$ http请求

来源:互联网 

I’m building an angular application that is going to run on several domains. Since there are different configurations on each domain I'll need to fetch all the variables by doing a call to the server. The call will return a JSON object that contains different rest urls. My problem is that I need to do this call before the 'resolve' step inside the $stateProvider, since I already have a task that is dependent on the configuration object from the server.I’m building an angular application that is goi




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

分享到: