Tengo lo siguiente
.html
<input type="text" formControlName="name" pInputText />
<input type="text" formControlName="address.name" pInputText />
<input type="text" formControlName="adress.code" pInputText />
.ts
form: FormGroup;
constructor(private fb: FormBuilder, private confirmationService: ConfirmationService) {
this.form = this.fb.group({
name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(50)]],
workshop: new FormGroup({
name: new FormControl('', [Validators.required, Validators.minLength(3), Validators.maxLength(50)]),
code: new FormControl('', [Validators.required, Validators.minLength(3), Validators.maxLength(50)]),
})
});
No me sale ningún error pero no cargan otros elementos de la vista, si elimino los inputs del address me funciona y carga la vista sin problemas