ngneat / forms-manager

🦄 The Foundation for Proper Form Management in Angular
https://www.netbasal.com
MIT License
518 stars 29 forks source link

Added proxy method `reset` #24

Closed panic175 closed 3 years ago

panic175 commented 3 years ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

There was no proxy for the reset method of an AbstractControl (like for patchValue and setValue).

What is the new behavior?

I added one

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

I would have added a unit test for reset, if there would have been one for setValue (most likely only copy/paste), but I wasn't able to identify one :/