Can't bind to 'colorPicker' since it isn't a known property of 'input'
opened this issue · comments
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
Same here
try to put ColorPickerModule to exports, example => exports: [ColorPickerModule]
try to put ColorPickerModule to exports, example => exports: [ColorPickerModule]
I think it has to import in app.module.ts as mine is working file
I am getting the same issue.
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
You use this plugin for mobile app or web?
I use it for web, not test on mobile app yet
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
Did anyone got this? not working even after adding to exports
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
https://www.npmjs.com/package/ct-angular2-color-picker
It's just the fork of the current plug-in.
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
};
}
}
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.
I tried export option as well but getting the same error. Can anyone please provide me the solution of this problem.
@biplabpokhrel @mallagopi999 @liebstein
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.
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.
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?
The same when migrating from angular 14 to 15.
With this I managed to solve it: npm install ngx-color-picker@14 --save