-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
scope: libAnything related to the library itselfAnything related to the library itselfstate: needs reproThis issue needs a reproThis issue needs a reprotype: featureThis is a new featureThis is a new featureworkaround-1: obviousObvious workaroundObvious workaround
Description
Intent:
Allow for easy implementation of single value (no form group) custom components that implement value accessor interface. This would allow to create smart components like selects / autocompletes that load data themselves that can easily be reused across the application
Think customer / user / country pickers or any commonly used domain specific pickers you can think of.
Issue today:
NgxSubFormComponent
requires a complex type as generic parameter for class fields / methods to make senseformControlNames
etc.- Its possible to use
NgxSubFormRemapComponent
to wrap the single value into a form group and back but it generates boilerplate that is redundant and feels unnecessary especially for new devs joining a project
Feature request:
Create an additional interface that exposes the same functionality as NgxSubFormComponent
or NgxSubFormRemapComponent
but all methods / fields should be singular formControlName
/ formControlValue
etc.
UPDATE:
https://stackblitz.com/edit/issue-demo-ngx-sub-form-single-value
Notes:
- checkout the
GenericLookupComponent
- here you can see how the single value is wrapped / unwrapped
alex87
Metadata
Metadata
Assignees
Labels
scope: libAnything related to the library itselfAnything related to the library itselfstate: needs reproThis issue needs a reproThis issue needs a reprotype: featureThis is a new featureThis is a new featureworkaround-1: obviousObvious workaroundObvious workaround