#example.push() is not a function
15 messages · Page 1 of 1 (latest)
@blissful barn Can you show the implementation of addBookForm ?
seems like result is not of FormArray type at runtime.
@nimble umbra
Your FormArray is nested in a FormControl. Change genre to new FormArray ([], Validators.required)
And given your snippets you can remove FormBuilder as you are not using it anymore. At least for consistency by using it should use it everywhere in your code.
@dusky dagger i did now i got this error field 43 in html is label field
why does it point to the label field
That's about the same problem: you are using 'formControlName' for a formArray
oh forgot to change that
That's not just about changing it to formArrayName though but I won't be able to help further today. You can take a look at the documentation or wait for someone else to help:)