Skip to content
This repository was archived by the owner on Aug 2, 2019. It is now read-only.

Commit e89ae5c

Browse files
committed
Snippet changes
1 parent bf1ba1d commit e89ae5c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/app/snippets/forms/form-builder/register-form.component.ts.snippet

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ class RegisterForm implements OnInit{
1414

1515
ngOnInit() {
1616
this.registerForm = this.fb.group({
17-
username: [],
18-
password: [],
17+
username: '',
18+
password: '',
1919
name: this.fp.group({
20-
firstname: [],
21-
lastname: []
20+
firstname: '',
21+
lastname: ''
2222
}),
23-
email: this.fb.array([
24-
[], [], []
25-
])
23+
email: this.fb.array(['', '', ''])
2624
});
2725
}
2826

0 commit comments

Comments
 (0)