Angular 7 Color Picker Component with no dependencies required. This is a Color Picker Component for Angular 7.
npm i @pixmama/ngx-light-color-picker
Use it inside your components, for example:
<ngx-light-color-picker class="color-picker" [height]="300" [width]="300" (colorSelected)="onColorSelected($event)"></ngx-light-color-picker>
- Add NgxLightColorPickerModule in your app.module.ts:
import {NgxLightColorPickerModule} from 'angular2-color-picker';
@NgModule({
...
imports: [NgxLightColorPickerModule]
})
git clone https://github.com/pixmama/ngx-light-color-picker.git
npm install
cd ngx-light-color-picker
npm run build
[height] = 300
[width] = 300
(colorSelected) = onColorSelected($event)
onColorSelected(e) {
this.selectedColor = e.detail.hex;
}