oneOf
validator for polymorphic data
#91
Labels
effort-2: hours
Will only take a few hours to fix/create
scope: lib
Anything related to the library itself
state: has PR
A PR is available for that issue
type: feature
This is a new feature
When dealing with polymorphic data and using the remap functions it'd be nice to have a
oneOf
validator. It'd take as argument keys of theformGroup
so it'd also be type safe.Example here https://github.com/cloudnc/ngx-sub-form/blob/6ecdb2017e/src/app/main/listing/listing-form/vehicle-listing/vehicle-product.component.ts#L24-L25
And it could look like the following:
The text was updated successfully, but these errors were encountered: