我的angularjs离子应用程序有问题.登录时我们正在加载各种设置.如果我终止该应用并重新启动它,则不会加载这些设置.
我需要知道在应用程序启动时是否有一个事件被调用,以便我可以重新加载我的应用程序设置.
谢谢
使用此应用程序:https : //billiving-qa.azurewebsites.net/spa1/#/invoices
一些 http 调用应该被缓存,但由于某种原因这不起作用:
function getStatuses() {
return $http.get('/v1/definitions/status', { cache: true })
.then(function (response) {
return response.data;
})
}
Run Code Online (Sandbox Code Playgroud)
如果您查看网络,您会看到“v1/definitions/status”未缓存,尽管设置了标志。
谢谢