angular - Angular 应用程序中的 KeepAlive 是什么?
问题描述
这个问题听起来很简单,但网上似乎没有太多解释。我正在尝试实现 ngIdle,并遵循了互联网上的一些指南,他们在实现中包括了 keepAlive。但它并没有真正解释 keepAlive 在那里做什么。
setIdle(5) // this fire up the timeout notification modal after 5 seconds
setTimeout(5) // this creates a timer that lasts for 5 seconds after the notification modal is shown
keepalive.interval(15) // what is it doing there and what is the impact on the angular application?
到目前为止,当我在网上阅读时,大部分keepAlive解释都与TCP连接以及它如何处理这些连接/线程有关。但是在角度应用的背景下呢?
欣赏是否可以对此提供一些基本解释。谢谢。
解决方案
推荐阅读
- r - ggplot2中的x轴和误差线(两条线的折线图)有问题
- javascript - 关闭 ajax 函数成功事件的 webview
- python - 通过指定其标签的一部分来获取 xml 树对象
- excel - 复杂的 Excel 转置
- node.js - 使用带有 nodejs + redbird (node-http-proxy) 的反向代理加载 iframe 时出错
- xml - 在 GO xml 中解析具有任意结尾的元素
- unity3d - HoloToolkit Spatial Understanding Raycast Customization 可快速工作以在增强的密集顶点 3D 模型上指示注视点
- visual-studio-code - 每次更改后,VsCode / Flutter 插件都会保持“将文件同步到设备”
- reactjs - 如何确保 React 的运行版本是最新的,因为 createContext 不是函数
- javascript - Javascript函数调用和绑定