P-Tree No value Accessor for form control with path
Posted: 25 Mar 2019, 15:36
Good morning! I have been trying to get a p-tree incorporated into my reactive form. However, I keep getting an error whenever I try to add "formControlName" to my P-Tree.
"No value accessor for form control with path"
<p-tree
[value]="name"
id="nameFirst"
formControlName="names"
selectionMode="multiple"
[(selection)]="allNames"
(onNodeSelect)="nodeSelect($event)"
>
</p-tree>
I have the formControlName correct, I have matched this to most of the other dropdowns I have made. While the form has no issue with other parts, it just can't work with p-trees apparently. Any ideas??
"No value accessor for form control with path"
<p-tree
[value]="name"
id="nameFirst"
formControlName="names"
selectionMode="multiple"
[(selection)]="allNames"
(onNodeSelect)="nodeSelect($event)"
>
</p-tree>
I have the formControlName correct, I have matched this to most of the other dropdowns I have made. While the form has no issue with other parts, it just can't work with p-trees apparently. Any ideas??