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 'multiple' since it isn't a known property of 'ng-select' #1020

Closed anshul-g-AnAr closed 10 months ago

anshul-g-AnAr commented 10 months ago

Error: src/app/recipes/recipes.component.html:15:66 - error NG8002: Can't bind to 'multiple' since it isn't a known property of 'ng-select'.

  1. If 'multiple' 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.

15 <ng-select [items]="cities2" bindLabel="name" bindValue="id" [multiple]="true" placeholder="Select cities"


  src/app/recipes/recipes.component.ts:6:16
    6   templateUrl: './recipes.component.html',
Error occurs in the template of component RecipesComponent.

Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/

× Failed to compile.

getting this. any one got the solution?

anshul-g-AnAr commented 10 months ago

wrong place