benjaminmbrown / angular-bootstrap-colorpicker-webpack

Fork of AngularJS Bootsrap Colorpicker that works with the combo of ES6, Webpack, and UglifyJs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This fork was made with a simple change to use var instead of let when requiring angular. Let usage was causing issues with UglifyJs in our webpack build.

angular-bootstrap-colorpicker-webpack

The Basics

Installation

Within your webpack module include CSS & JS

var angular = require('angular');

require('angular-bootstrap-colorpicker-webpack/src/colorpicker.css')
ngModule = angular.module('myModule', [
        require('angular-bootstrap-colorpicker-webpack')
    ])
require('./otherComponents')(ngModule);
module.exports = ngModule.name;

In your html add the colorpicker directive

<input colorpicker ng-model="myModel">

See the link above for indepth customization instructions.

About

Fork of AngularJS Bootsrap Colorpicker that works with the combo of ES6, Webpack, and UglifyJs


Languages

Language:JavaScript 100.0%