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

后端 未结 1 2011
花落未央
花落未央 2021-02-01 12:32

angular.element

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

How c

1条回答
  •  死守一世寂寞
    2021-02-01 13:13

    Found it:

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

    0 讨论(0)
提交回复
热议问题