Try requiring the ng-model controller and overriding $render
Pete
...from my mobile.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
It relies on the pre-existing DOM to keep its options.
You could actually rewrite the plugin itself for Angular and it would work well and probably be very easy to write as an Angular directive.You could also amend the existing plugin to accept an array of objects and then build it's own option list from them. The directive could look something like simplecolorpicker="EventColors". Let the plugin rebuild its options when given a new set of options.