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.

Hi, 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kasradzenikacommented, Aug 29, 2019

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.

0reactions
Rocky49commented, Sep 2, 2020

how do I do it with ngModel

Read more comments on GitHub >

github_iconTop 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 >

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