|
@@ -10,7 +10,6 @@ export abstract class GroupInputComponent implements OnInit {
|
|
|
|
|
|
@Input()
|
|
@Input()
|
|
set meta(meta: StringMap<any>) {
|
|
set meta(meta: StringMap<any>) {
|
|
- console.log('set meta');
|
|
|
|
this._meta = meta;
|
|
this._meta = meta;
|
|
this.exposeForTemplate();
|
|
this.exposeForTemplate();
|
|
this.updateFormGroupAndMeta();
|
|
this.updateFormGroupAndMeta();
|
|
@@ -39,7 +38,7 @@ export abstract class GroupInputComponent implements OnInit {
|
|
this.formGoA.push(buildFormControl(meta[formArrayLength + delta]));
|
|
this.formGoA.push(buildFormControl(meta[formArrayLength + delta]));
|
|
}
|
|
}
|
|
if (delta < 0) {
|
|
if (delta < 0) {
|
|
- this.formGoA.controls.length = meta.length;
|
|
|
|
|
|
+ this.formGoA.controls.length = meta.length; // Truncate the form array
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.childMetaArray = Object.values(this._meta.meta); // Metadata array of all controls in group
|
|
this.childMetaArray = Object.values(this._meta.meta); // Metadata array of all controls in group
|