Skip to content

Commit

Permalink
fix(docs): replace controls prop with value (ngxs#1788)
Browse files Browse the repository at this point in the history
`Controls` prop gives us an object that throws an error when using that prop for the `NgFor` directive, since Object is not iterable.

Fixes ngxs#1733
  • Loading branch information
destus90 authored Sep 8, 2021
1 parent 566188b commit 78fbf9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/plugins/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ import { FormBuilder, FormGroup } from '@angular/forms';
<input type="text" formControlName="novelName" />
<div
formArrayName="authors"
*ngFor="let author of newNovelForm.get('authors').controls; index as index"
*ngFor="let author of newNovelForm.get('authors').value; index as index"
>
<div [formGroupName]="index">
<input formControlName="name" />
Expand Down

0 comments on commit 78fbf9a

Please sign in to comment.