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.

Support @angular/forms

See original GitHub issue

It seems that material does not work with new forms. I have used formControlName directive and I got error that there is no value accessor for certain field in my case ‘email’:

No value accessor for ‘email’

I have changed import in input/index.js from:

var common_1 = require('@angular/common');

to:

var common_1 = require('@angular/forms');

and it seems to start working.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

1reaction
0cvcommented, Jun 20, 2016

@naveedahmed1 ahh indeed, this did the trick. I didn’t come on the idea to modify the source file directly, thank you!

0reactions
angular-automatic-lock-bot[bot]commented, Sep 5, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to forms in Angular
Angular provides two different approaches to handling user input through forms: reactive and template-driven. Both capture user input events from the view, ...
Read more >
angular/forms
Implements a set of directives and providers to communicate with native DOM elements when building forms to capture user input.
Read more >
Reactive forms - Angular
Reactive forms provide a model-driven approach to handling form inputs whose values change over time. This guide shows you how to create and...
Read more >
Using forms for user input - Angular
Import the FormBuilder service from the @angular/forms package. This service provides convenient methods for generating controls.
Read more >
Building a template-driven form - Angular
Angular supports two design approaches for interactive forms. You can build forms by using Angular template syntax and directives to write templates with ......
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