首页 开发技术 其它     /    ngx-componentdestroyed:取消订阅AngularComponents中的Observables-源码

ngx-componentdestroyed:取消订阅AngularComponents中的Observables-源码

上传者: weixin_42165018 | 上传时间:2025/3/2 9:46:29 | 文件大小:52KB | 文件类型:ZIP
ngx-componentdestroyed:取消订阅AngularComponents中的Observables-源码
退订Angular中的Observables该库提供了实用程序方法,可帮助您退订Angular应用程序中ReactiveX的Observables。
如果您已经使用了该库,并希望将其与Angular9一起使用:请查看《。
为什么?取消订阅可观察对象将导致可观的流泄漏,因为可观察流将保持打开状态,甚至可能在组件已被破坏或用户导航到另一个页面之后也是如此。
重要提示:如果在中使用服务,则它们会受到同一内存泄漏问题的影响!这篇博客文章提供了更多信息:赞助人:red_heart_selector::red_heart_selector:首先:检查您的Angular版本!如果您将Angular<=8或Angular9与ViewEngine一起使用,而不是Ivy,则必须使用该库的早期版本。
请参阅以获取更多说明。
如果您使用的是最新的Angular版本,并且不知道ViewEngine或Ivy是什么,请继续执行以下说明。
演示版@Component({selector:'foo',templateUrl:'./foo.compon 本软件ID:14984225

文件下载

资源详情

[{"title":"(17个子文件52KB)ngx-componentdestroyed:取消订阅AngularComponents中的Observables-源码","children":[{"title":"ngx-componentdestroyed-master","children":[{"title":".travis.yml <span style='color:#111;'>38B</span>","children":null,"spread":false},{"title":"typings.json <span style='color:#111;'>117B</span>","children":null,"spread":false},{"title":"docs","children":[{"title":"viewengine.md <span style='color:#111;'>774B</span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'>1.14KB</span>","children":null,"spread":false},{"title":"tslint.json <span style='color:#111;'>1.23KB</span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'>11.09KB</span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'>153.75KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"test.ts <span style='color:#111;'>4.47KB</span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'>2.45KB</span>","children":null,"spread":false}],"spread":true},{"title":".npmignore <span style='color:#111;'>22B</span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'>859B</span>","children":null,"spread":false},{"title":"tsconfig.dist.es2015.json <span style='color:#111;'>140B</span>","children":null,"spread":false},{"title":"spec","children":[{"title":"mocha.opts <span style='color:#111;'>158B</span>","children":null,"spread":false},{"title":"setup.js <span style='color:#111;'>65B</span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'>41B</span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'>426B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>4.66KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明