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.

Can't bind to 'ngModel' since it isn't a known property of 'select'. ("<select [ERROR ->][(ngModel)] = "foo" (ngModelChange) = "onChange($event)">

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior adding a [(ngModel)] caused error after upgrading to rc.5 from rc.4

Expected/desired behavior two way binding from <select> using ngModel

  • Angular version: 2.0.0-rc.5
  • Browser: Chrome
  • Language: TypeScript

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
pkozlowski-opensourcecommented, Aug 10, 2016

ngModel is not ambient by default in RC5 - you need to explicitly include forms module. Check https://angular.io/docs/ts/latest/cookbook/rc4-to-rc5.html for more details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't bind to 'ngModel' since it isn't a known property of 'input'
You need to import the FormsModule. Open app.module.ts and add the lines import { FormsModule } from '@angular/forms';.
Read more >
Can't Bind to ngModel since it isn't a known property of select
You can bind dynamic data to an SELECT element in Angular using the ngFor directive. While working with this example, an unexpected error...
Read more >
Can't bind to 'ngModel' since it isn't a known property of 'input'
To fix Can't bind to 'ngModel' since it isn't a known property of 'input' error in Angular we have to import FormsModule in...
Read more >
Angular—Can't Bind to ngModel, Not a Known Property of input
The downside is that you have to use import statements to load the parts your component needs. The only reason that the ngModel...
Read more >
Difference between (change) and (ngModelChange) in Angular
Comparing $event arguments · Using (change) will only fire when the user has blurred the input · With (change) we need to use...
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