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

AngularjsAngularjs DirectiveJscolor

Angularjs Problem Overview


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?

Angularjs Solutions


Solution 1 - Angularjs

Found it:

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJimmy KaneView Question on Stackoverflow
Solution 1 - AngularjsJimmy KaneView Answer on Stackoverflow