I have an angularjs directive in which i want to add a svg tag to the current element of the directive. Right now I do this with the help of jquery
link: function (scope, iElement, iAttrs) {
var svgTag = $('<svg width="600" height="100" class="svg"></svg>');
$(svgTag).appendTo(iElement[0]);
...
}
yet i dont want the directive to depend on jquery for this simple task. How would I accomplish the same with angular means (or native javascript code). Thanks