Skip to content

Commit 5b305be

Browse files
committed
add
1 parent 768b799 commit 5b305be

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

bash-ng/src/app/reactive-form/reactive-form.component.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { NgClass } from '@angular/common';
33
import { Component, OnInit } from '@angular/core';
44

55
import {
6+
FormArray,
67
FormBuilder,
78
FormControl,
89
FormGroup,
@@ -28,6 +29,17 @@ export class ReactiveFormComponent implements OnInit {
2829
status8: boolean = false;
2930
status9: boolean = false;
3031

32+
33+
34+
'users ': new FormArray([
35+
this.fb.group(
36+
{
37+
'name': new FormControl(''),
38+
'AGE': new FormControl(''),
39+
'dept': new FormControl('')
40+
}
41+
)
42+
]);
3143
// public from: FormGroup = new FormGroup({
3244
// First_name: new FormControl(
3345
// '',

0 commit comments

Comments
 (0)