Can't bind to id
See original GitHub issueHi, i have a problem binding the input to the selected options id field.
<ngx-select-dropdown [options]="busTypes" formControlName="type_id" [config]="config"></ngx-select-dropdown>
When i check the form value for that particular field, it fetches the whole object. Can you please help me?
It would have been great to have it in the config to specify what field to bind to just like the description. Thanks in advance.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Can't bind to 'ngIf' since it isn't a known property of 'div'
Can't bind to 'ngIf' since it isn't a known property of 'div'. The element is <div [ngIf]="isAuth" id="sidebar">. And the component is:
Read more >Common errors in Angular: Can't bind to since it isn't a ...
Ever made an Angular application , opened your console and saw an error message similar to: “Can't bind to ngclass since it isn't...
Read more >Angular Can't bind to 'ngIf' since it isn't a known property of ' ...
Solution for Angular Can't bind to 'ngIf' since it isn't a known property of 'div' ... There are multiple ways to fix this....
Read more >Can you remember "Can't bind 'x' since it is not a known ...
This error often means that you haven't declared the directive "x" or haven't imported the NgModule to which "x" belongs.
Read more >Property binding
Property binding moves a value in one direction, from a component's property into a target element property. For more information on listening for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same issue. However this is an open source repo and the author is not obliged to respond at all. I’ll try to fix this one if I can and make a pull request.
how do I do it with ngModel