Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
jedionmelbin opened this issue Mar 19, 2018 · 6 comments
Open

Comments

@jedionmelbin
Copy link

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


<select2 [ERROR ->][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>

<select2 [data]="exampleData" [ERROR ->][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
Copy link

Do you have FormsModule imported in your module?

@guilhermenass
Copy link

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

@rodrigorellana
Copy link

same issue =(

@douglasPinheiro
Copy link

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

@baj9032
Copy link

baj9032 commented Sep 4, 2018

I have the same error.

1 similar comment
@ducvu91
Copy link

ducvu91 commented Jan 9, 2019

I have the same error.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants