buberdds / angular-bootstrap-colorpicker

Native AngularJS colorpicker directive. No dependency on jQuery or jQuery plugin is required.
MIT License
419 stars 226 forks source link

Plugin doesn't work, no errors at the console #19

Closed BeOleg closed 11 years ago

BeOleg commented 11 years ago

Hello, I have cloned your repo(I am using one of the latest Chrome releases, and have tried bot the master branch and the 1.0.0 branch).

I've copied the directory tree of your app entirely into my /lib directory, and added an inclusion of the bootstrap-colorpicker-module.js file at the bottom of my index page, as following:

<script src="js/services.js"></script>
 <script src="js/controllers.js"></script>
 <script src="js/filters.js"></script>
 <script src="js/directives.js"></script>
 <script src="lib/color-picker/js/bootstrap-colorpicker-module.js"></script>

my app setup looks as following: var app = angular.module('myApp', ['myApp.filters', 'myApp.services', 'myApp.directives', 'myApp.controllers', 'colorpicker.module', 'blueimp.fileupload', 'ui.bootstrap'])

I've tried to change the order of the dependencies and the file loading, still the color picker directive will do nothing, and there are no errors at the console.

Thanks in advance!

buberdds commented 11 years ago

Did you include the CSS file?

BeOleg commented 11 years ago

Thanks, missed it, perhaps it is worth mentioning this specific detail in in the docs.

arunkjn commented 10 years ago

Aaah! figured this out after an hour of painful debugging. Even tried namespacing the colorpicker factories. Perhaps it would be worth to mention this in the readme doc.