我需要在
window.performance.getEntries()
,尤其是在页面转换之间转储的。这正用于监视错误和统计数据。它存储在外部服务中。
我提议这样做:
window.onbeforeunload = function(e) {
storageServiceCall(window.performance.getEntries());
}
我认为可能有标准的方法来解决这个问题,涉及到页面转换的路由,或者退出角度SPA。
统计要求的关注点是window.page.getEntries()中的某些值在页面转换时会永久丢失。要求是要保存所有这些文件。
我的问题是:
如何在AngularJS中跨多个页面保留window.performance.getEntries()值?