- Run
npm i
- Run
ng serve
- Open browser and visit localhost:4200
- Click list button
- Edit one of the input fields
- Click empty button
- Repeat step 4 to 6 couple times
- Open inspect memory tab
- Click bin to collect garbage
- Take a heap snapshot
- Search for ListComponent
Instances of ListComponent in the memory.
No instance of ListComponent to exist in memory.
This only happens when the input field is modified
Angular version: 11.2.13
Browser:
- Chrome (desktop) version 90.0.4430.93 (Official Build) (x86_64)
- Chrome (Android) version XX
- Chrome (iOS) version XX
- Firefox version XX
- Safari (desktop) version XX
- Safari (iOS) version XX
- IE version XX
- Edge version XX