Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Can't bind to 'colorPicker' since it isn't a known property of 'input' #105

Open
ghost opened this issue Apr 23, 2017 · 19 comments
Open

Can't bind to 'colorPicker' since it isn't a known property of 'input' #105

ghost opened this issue Apr 23, 2017 · 19 comments

Comments

@ghost
Copy link

ghost commented Apr 23, 2017

Just followed the instructions given. I am getting the following error while loading my page.
<input [(colorPicker)]="color" [style.background]="color" [value]="color"/>
Can't bind to 'colorPicker' since it isn't a known property of 'input'

Angular 2 version: 2.4.7

@javierdlahoz
Copy link

Same here

@thanhdk
Copy link

thanhdk commented Jun 8, 2017

try to put ColorPickerModule to exports, example => exports: [ColorPickerModule]

@nikhildhar1992
Copy link

try to put ColorPickerModule to exports, example => exports: [ColorPickerModule]
I think it has to import in app.module.ts as mine is working file

@Sathishchary
Copy link

I am getting the same issue.

@thanhdk
Copy link

thanhdk commented Jun 12, 2017

I think it has to import in app.module.ts as mine is working file
yes, I mean try to import and export also. I have to do that to make it works

@nikhildhar1992
Copy link

nikhildhar1992 commented Jun 12, 2017 via email

@thanhdk
Copy link

thanhdk commented Jun 12, 2017

You use this plugin for mobile app or web?
I use it for web, not test on mobile app yet

@nikhildhar1992
Copy link

nikhildhar1992 commented Jun 12, 2017

I have checked on web and on mobile also it was working but don't know why I am getting error now whenever I include this ColorPickerModule in module.ts

@ghost
Copy link
Author

ghost commented Jun 21, 2017

Did anyone got this? not working even after adding to exports

@thanhdk
Copy link

thanhdk commented Jun 22, 2017

I am not, I remember that there is another plugin like this, I think it's more stable.
-> https://www.npmjs.com/package/ct-angular2-color-picker
Please try this and let me know

@ghost
Copy link
Author

ghost commented Jun 23, 2017

https://www.npmjs.com/package/ct-angular2-color-picker
It's just the fork of the current plug-in.

@liebstein
Copy link

liebstein commented Jun 29, 2017

You need to define a shared module and export ColorPickerModule

import { ColorPickerModule } from 'angular2-color-picker';

@NgModule({
  imports: [
    CommonModule,
    ColorPickerModule
  ],
  exports: [
    CommonModule,
    ColorPickerModule
  ],
  declarations: [],
  providers: []
})
export class SharedModule {

  static forRoot(): ModuleWithProviders {
    return {
      ngModule: SharedModule
    };
  }
}

@biplabpokhrel
Copy link

Try ngx-color-picker, this work with AOT as well, you have to export the ColorPickerModule , if you want to use colorpicker outside the current module.

@ghost
Copy link
Author

ghost commented Aug 3, 2017 via email

@ghost
Copy link

ghost commented Sep 9, 2020

I tried export option as well but getting the same error. Can anyone please provide me the solution of this problem.
@biplabpokhrel @mallagopi999 @liebstein

@jayudhandha
Copy link

Any update on this issue?

I also tried the export option both in current module and app.module.ts.

Same issue in both the cases.

@MorenoAlex
Copy link

I have the same problem with Angular 15.
Note that I had no problem with Angular 14, but after the 14->15 migration I can't seem to get rid of this error.
I tried the export solution to no avail.

@kakopappa
Copy link

I have the same problem with Angular 15.
Note that I had no problem with Angular 14, but after the 14->15 migration I can't seem to get rid of this error.
I tried the export solution to no avail.

Having the same problem. did you solve it?

@ivaancruzz
Copy link

The same when migrating from angular 14 to 15.
With this I managed to solve it: npm install ngx-color-picker@14 --save

More info

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

No branches or pull requests

10 participants