Search code examples
angularjsangularjs-directivejscolor

Is there a way to get the raw DOM element from an angular.element


angular.element

All element references in Angular are always wrapped with jQuery or jqLite; they are never raw DOM references.

How can I get the raw DOM element, because I have legacy JS code (jscolor Picker) that needs the raw DOM element?


Solution

  • Found it:

    ang_element = angular.element(element);
    raw_element = ang_element[0];