ngx-select-ex: Can't bind to 'formControl' since it isn't a known property of 'ngx-select'.

Hi, When I used the single select, I got this error.

HTML

  • It’s the same contained in the doc.

TypeScript:

  • I modified it slightly since I passed it a list containing objects with these fields: id, ds and selected.
  • The local variable ‘_ngxDefault’ stores ‘this.lista[idx].ds’ (‘lista’ is my collection of items).

My feature module:

  • import {INgxSelectOptions, NgxSelectModule} from ‘ngx-select-ex’;
  • const CustomSelectOptions: INgxSelectOptions = { // Check the interface fo more options optionValueField: 'id', optionTextField: 'ds' };
  • NgxSelectModule.forRoot(CustomSelectOptions)

Best regards.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 40 (21 by maintainers)

Commits related to this issue

Most upvoted comments

Okay. It is installed…

Upload your project to the GitHub or some similar GIT system and give me the access. I’ll try to fix your issue.

I do not want to fix it in the zip archive because we cant to synchronize it correctly.

Looks like a bug. I’ll fix it.