Skip to content

Commit

Permalink
Add repro steps
Browse files Browse the repository at this point in the history
  • Loading branch information
kobaska23 committed May 7, 2021
1 parent 1cb39b9 commit b869d80
Showing 1 changed file with 28 additions and 17 deletions.
45 changes: 28 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,38 @@
# MyApp
# Reproduction steps

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.12.
1. Run `npm i`
2. Run `ng serve`
3. Open browser and visit localhost:4200
4. Click list button
5. Edit one of the input fields
6. Click empty button
7. Repeat step 4 to 6 couple times
8. Open inspect memory tab
9. Click bin to collect garbage
10. Take a heap snapshot
11. Search for ListComponent

## Development server
## Current behavior

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.
Instances of ListComponent in the memory.

## Code scaffolding
## Expected behavior

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
No instance of ListComponent to exist in memory.

## Build
This only happens when the input field is modified

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Enviroment

## Running unit tests
Angular version: 11.2.13

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
Browser:
- [x] 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

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.

0 comments on commit b869d80

Please sign in to comment.