AngularJS implement element's before method without jQuery

angularjs, angularjs-directive, jquery

Solution

To do it without jQuery but with angular's jqLite:

$element.parent()[0].insertBefore($insertedBeforeElement[0], $element[0]);

Problem

Is there a simple way to implement before method for DOM manipulation without jQuery in my AngularJS directive? jQuery way is: ``` $element.before($insertedBeforeElement); ```

Original source