Highlights
-
Observable for validation message (Example)
The validation message can return an observable value which is useful for an i18n app where the messages are loaded asynchronously. -
Simplify passing extra parameters to validation (Example)
validation: [ { name: 'date-future', options: { days: 5 } } ]
-
Allow onInit/afterView/afterContent to return observables (Example)
{ hooks: { onInit: (field) => { // subscription and unsubscribe is handled by formly return field.formControl.valueChanges .pipe(tap(value => console.warn(value))), ; } } }
-
Take account of defined validators in a
fieldGroup
with empty key (Example)
Bug Fixes
Features
- bootstrap: support switch style checkboxes (#2263) (5b1a771), closes #2257
- core: add an alternative way for passing parameters to validation (#2269) (0295bd9), closes #1828
- core: allow nullable value for group type (#2267) (a34d384), closes #2265
- core: allow onInit/afterView/afterContent to return observables (#2242) (f91637e), closes #1986
- core: deprecate doCheck, afterContent and afterView Checked hooks (#2245) (aea28e1)
- core: support passing observable for validation message (#2241) (a53a737), closes #2214
- core: support validations for fieldGroup with empty key (#2271) (ffe7df0), closes #2059 #2255
- ionic: add compareWith input for select type (#2277) (7ef2b8e), closes #2275
- material: add missing mat-datepicker inputs to datepickerOptions (#2274) (4003729), closes #2221