Answers for "Error: No value accessor for form control with name:"

2

core.js:6157 ERROR Error: No value accessor for form control with name: 'option'

add a name field e.g(name ="grades") and ngDefaultControl
Posted by: Guest on March-26-2021
0

Error: No value accessor for form control with name:

/// ngDefaultControl ---> just add that to the custom component and it will work
<mat-slide-toggle ngDefaultControl formControlName="extraCheese">
 Extra Cheese
</mat-slide-toggle>
Posted by: Guest on October-14-2021

Code answers related to "Error: No value accessor for form control with name:"

Browse Popular Code Answers by Language