Releases: cloudnc/ngx-sub-form
Releases · cloudnc/ngx-sub-form
v3.0.3
v3.0.2
v3.0.1
3.0.1 (2019-11-07)
This release should be 3.0.0 but an issue happened and the 3.0.0 couldn't be published.
Here are the notes for 3.0.0 (and the empty 3.0.1):
Features
- lib: possibility to define default values and reset a form using those + possibility to set a
formControl
to null - lib: handle default values with
transformToFormGroup
BREAKING CHANGES
transformToFormGroup
can now receive a null
value.
It also has a new param "defaultValues" which is a Partial of the form interface.
This gives finer control on the behavior when a null value is passed to a sub form and let you implement what you want. Indeed in some cases you may still display a sub form even if it's value is null, in that case, you then have the choice to reset the formGroup to default values, or set all of them to null. From transformToFormGroup
, if you return null all the properties of the form will be reset to null, otherwise return an object representing all the values.
v2.11.5
v2.11.4
2.11.4 (2019-09-05)
Bug Fixes
- lib: emitted value should always reflect the latest state of the form (b47018c), closes cloudnc/ngx-sub-form#98
v2.11.3
2.11.3 (2019-08-13)
Bug Fixes
- lib: data input decorator has a type error when used with an array (b424cdf), closes cloudnc/ngx-sub-form#83
v2.11.2
2.11.2 (2019-07-20)
Bug Fixes
- lib:
formControlNames
returns array when control is array type (8bdf874), closes cloudnc/ngx-sub-form#73
v2.11.1
v2.11.0
2.11.0 (2019-06-23)
Features
- Array Handling: Use interface to manage array handling methods. (92fa38e)
- lib:
formGroupControls
property now gives you access to the correct type without the need to cast it (eitherFormControl
orFormArray
) (ddfcd5a) - lib: add a hook
createFormArrayControl
to give full control when creating aFormControl
for aFormArray
(94f58c6) - lib: handle
FormArray
(52a5e76), closes cloudnc/ngx-sub-form#9 - lib: handle errors for
FormArray
s (781c683)