question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slide-Toggle on Latest Angular 2 (RC4) - EXCEPTION: No value accessor for ''

See original GitHub issue

Browser returns an error when using [(ngModel)] on Slide-Toggle Component:

<md-slide-toggle color="primary" [(ngModel)]="sortMode">
   TOGGLE
  </md-slide-toggle>

EXCEPTION: No value accessor for ''

Angular 2 RC4

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Neo11commented, Jul 3, 2016
bootstrap(AppComponent, [
  disableDeprecatedForms(),
  provideForms()
 ])
 .catch((err: any) => console.error(err));

details here

The element need also a name to get it work with new forms

2reactions
theunrealcommented, Jul 3, 2016

I did import {provideForms} from '@angular/forms'; bootstrap(AppComponent, [ JwtService, HTTP_PROVIDERS, provideForms() ]);

Read more comments on GitHub >

github_iconTop Results From Across the Web

No value accessor for form control with unspecified name ...
I fixed this error by adding the name="fieldName" ngDefaultControl attributes to the element that carries the [(ngModel)] attribute.
Read more >
angular/angular - Gitter
No value accessor for form control with unspecified name. ... Slide Toggle </md-slide-toggle> this.form = new FormGroup({ 'surname': new ...
Read more >
EPEL 7 for aarch64 - RPMFind
pekwm · perdition · pgpool-II · php-fpm.d · php-tcpdf · php.d · phpMyAdmin · phpPgAdmin · phpldapadmin · phpwapmail · pki.
Read more >
notebookffad25d0e2 - Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from 60k Stack Overflow Questions with Quality Rating.
Read more >
vocab.txt - Hugging Face
0 1 2 3 4 5 6 7 8 9 : ; < = > ? ... ##lication ##ory ret ##one id ##urn...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found