Skip to content

Releases: cloudnc/ngx-sub-form

v3.0.3

28 Nov 10:18
2499b90
Compare
Choose a tag to compare

3.0.3 (2019-11-28)

Bug Fixes

  • lib: formGroupErrors only includes the errors within a FormArray, which makes it unusable to access an error by index (13c2535)
  • lib: when accessing formGroupErrors, a FormArray with no errors returns an empty array instead of null (d736211)

v3.0.2

12 Nov 12:30
9a7da28
Compare
Choose a tag to compare

3.0.2 (2019-11-12)

Bug Fixes

v3.0.1

07 Nov 14:36
1956d25
Compare
Choose a tag to compare

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

30 Sep 13:50
005a8e5
Compare
Choose a tag to compare

2.11.5 (2019-09-30)

Bug Fixes

  • doc: typo "formControlErrors" instead of "formGroupErrors" (071c719)
  • doc: typo "formControlErrors" instead of "formGroupErrors" (#100) (005a8e5)

v2.11.4

05 Sep 12:25
d3c7292
Compare
Choose a tag to compare

2.11.4 (2019-09-05)

Bug Fixes

v2.11.3

13 Aug 16:45
6ecdb20
Compare
Choose a tag to compare

2.11.3 (2019-08-13)

Bug Fixes

v2.11.2

20 Jul 17:11
96fa4e8
Compare
Choose a tag to compare

2.11.2 (2019-07-20)

Bug Fixes

v2.11.1

28 Jun 10:20
2e24ffd
Compare
Choose a tag to compare

2.11.1 (2019-06-28)

Bug Fixes

  • lib: formGroupErrors properties are not correctly typed (62d0eb4)

v2.11.0

23 Jun 12:22
Compare
Choose a tag to compare

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 (either FormControl or FormArray) (ddfcd5a)
  • lib: add a hook createFormArrayControl to give full control when creating a FormControl for a FormArray (94f58c6)
  • lib: handle FormArray (52a5e76), closes cloudnc/ngx-sub-form#9
  • lib: handle errors for FormArrays (781c683)

v2.10.2

18 Jun 05:01
e1ba611
Compare
Choose a tag to compare

2.10.2 (2019-06-18)

Bug Fixes