src/misc/colorpickerComponent.js
function colorPickerComponent(ngeoColorpickerTemplateUrl) {
  return {
    restrict: 'A',
    scope: {
      colors: '<?ngeoColorpicker',
      color: '=?ngeoColorpickerColor'
    },
    controller: 'NgeoColorpickerController as ctrl',
    bindToController: true,
    templateUrl: ngeoColorpickerTemplateUrl
  };
}
function colorPickerComponent(ngeoColorpickerTemplateUrl) {
  return {
    restrict: 'A',
    scope: {
      colors: '<?ngeoColorpicker',
      color: '=?ngeoColorpickerColor'
    },
    controller: 'NgeoColorpickerController as ctrl',
    bindToController: true,
    templateUrl: ngeoColorpickerTemplateUrl
  };
}
function colorPickerComponent ( ngeoColorpickerTemplateUrl ) { return { restrict : 'A' , scope : { colors : '<?ngeoColorpicker' , color : '=?ngeoColorpickerColor' } , controller : 'NgeoColorpickerController as ctrl' , bindToController : true , templateUrl : ngeoColorpickerTemplateUrl } ; }
Provides the "ngeoColorpicker" directive, a widget for
selecting a color among predefined ones.

Example:

<div ngeo-colorpicker="ctrl.colors">
</div>


@param {string|function(!JQuery=, !angular.IAttributes=): string}
ngeoColorpickerTemplateUrl Template URL for the directive.
@return {angular.IDirective} Directive Definition Object.
@ngInject
@ngdoc directive
@ngname ngeoColorpicker
Provides the ngeoColorpicker directive a widget for selecting a color among predefined ones .