FloNeu / memory-leaks-rxjs

Repository for Angular RxJS Memory Leak Article

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AngularMemoryLeaks

This project was generated with Angular CLI version 7.0.2.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Article

https://medium.com/@erxk_verduin/angular-rxjs-detecting-memory-leaks-bdd312a070a0

App

Application

src/app/app.component.ts

This is where we can toggle all of the component's creation/destruction using a boolean value and the ngIf directive

src/app/finite-observable

A component with an observable that only emits one value and is only initialized and used within the component.

src/app/from-event-observable

A component with an observable that emits during events generated by a button inside the component

src/app/large-leak

A component with an observable that instantiates large strings when it emits.

src/app/service-observable-leak

A component that injects a service that exposes an observable to be used inside the component

About

Repository for Angular RxJS Memory Leak Article


Languages

Language:TypeScript 94.6%Language:JavaScript 3.0%Language:HTML 2.3%Language:CSS 0.1%