Quantcast
Channel: User Simon_Weaver - Stack Overflow
Viewing all articles
Browse latest Browse all 116

Answer by Simon_Weaver for ERROR Error: No value accessor for form control with unspecified name attribute on switch

$
0
0

Check for basic typos in the control you're using.

I'm using signals, where item.selected is a Signal<boolean> and was getting the same error on the following code:

<mat-checkout [(ngModel)]="item.selected">{{ item.desc }}</mat-checkout>

Spot the problem?... I'd put mat-checkout instead of mat-checkbox. No compile errors.


Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>