NejcZdovc / ng2-select2

Select 2 wraper for angular2
MIT License
123 stars 93 forks source link

Can't bind to 'data' since it isn't a known property of 'select2' #118

Open jedionmelbin opened 6 years ago

jedionmelbin commented 6 years ago

compiler.js:466 Uncaught Error: Template parse errors: Can't bind to 'data' since it isn't a known property of 'select2'. ("

][data]="exampleData" [options]="[{placeholder:'300'}]" (valueChanged)="changed($ev"): ng:///SharedModule/SearchadvancedComponent.html@101:27 Can't bind to 'options' since it isn't a known property of 'select2'. ("div>
][options]="[{placeholder:'300'}]" (valueChanged)="changed($event)"> "): ng:///SharedModule/SearchadvancedComponent.html@101:48 'select2' is not a known element: 1. If 'select2' is an Angular component, then verify that it is part of this module. 2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
Please help
dpetersnews commented 6 years ago

Do you have FormsModule imported in your module?

guilhermenass commented 6 years ago

I have the same error. I have imported the FormsModule, but isn't working.

rodrigorellana commented 6 years ago

same issue =(

douglasPinheiro commented 6 years ago

have you add 'Select2Module' in import from app module ?

baj9032 commented 6 years ago

I have the same error.

ducvu91 commented 5 years ago

I have the same error.