valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
676 stars 588 forks source link

Can't bind to 'markFirst' since it isn't a known property of 'ng-select'. #949

Closed AmineBena17 closed 6 years ago

AmineBena17 commented 6 years ago

Hi,

i'm using ng2-selectin my project, but when i'm trying to bind [markFirst] i got this error :

`ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'markFirst' since it isn't a known property of 'ng-select'.

  1. If 'markFirst' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.
  2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. (" <ng-select [multiple]="false" class='w-100' [ERROR ->][markFirst]="true" #addressSelection name="addressSelection" [required]="field?.required === '1'" "): ng:///OnlineFormsModule/OnlineFormsComponent.html@134:44 Error: Template parse errors: Can't bind to 'markFirst' since it isn't a known property of 'ng-select'.
  3. If 'markFirst' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.
  4. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. (" <ng-select [multiple]="false" class='w-100' [ERROR ->][markFirst]="true" #addressSelection name="addressSelection" [required]="field?.required === '1'" "): ng:///OnlineFormsModule/OnlineFormsComponent.html@134:44`

i don't know if it's a bug or something else

thanks