瀏覽代碼

Update 'src/app/dynaform/dynaform.component.ts'

Richard Knight 6 年之前
父節點
當前提交
328d42a7ce
共有 1 個文件被更改,包括 2 次插入7 次删除
  1. 2 7
      src/app/dynaform/dynaform.component.ts

+ 2 - 7
src/app/dynaform/dynaform.component.ts

@@ -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(',')) {