|
@@ -40,11 +40,6 @@ export class DynaformComponent implements OnInit {
|
|
|
@Input()
|
|
|
formGroupName?: FormGroupName;
|
|
|
|
|
|
- @Input()
|
|
|
- set control(fg: FormGroup) {
|
|
|
- this.formGroup = fg;
|
|
|
- }
|
|
|
-
|
|
|
@Input()
|
|
|
set meta(data) {
|
|
|
this.formMetaData = this.formMetaData || data;
|
|
@@ -79,8 +74,8 @@ export class DynaformComponent implements OnInit {
|
|
|
this.path = this.getFormGroupPath();
|
|
|
// Object.freeze(this.path);
|
|
|
|
|
|
- // If we're given a formGroupName or nested FormFroup, and the form's full (or partial but fuller) metadata tree,
|
|
|
- // drill down to find the corresponding FormGroup's metadata
|
|
|
+ // If we're given a formGroupName or nested FormGroup, and the form's full (or partial but fuller) metadata tree,
|
|
|
+ // drill down to find the FormGroup's metadata
|
|
|
const path = [...this.path]; // Clone to avoid mutating this.path
|
|
|
const metaDataKeysExpected = this.controlNames.join(',');
|
|
|
while (path.length && metaDataKeysExpected !== Object.keys(this.formMetaData).join(',')) {
|