timdeschryver / ng-signal-forms

105 stars 7 forks source link

feat: introduce reset function for FormField and FormGroup #13

Closed goetzrobin closed 1 year ago

goetzrobin commented 1 year ago

For FormFields this will reset the value to the initial value and also set the state to PRISTINE and UNTOUCHED. For FormGroups this will go through every control and execute the reset function of said control. If the control happens to be an array, it will reset the array to a copy of the initial array.

closes #11

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: