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: functio
Why not to try simple (but powerful) html() method:
html()
iElement.html('');
Or append as an alternative:
append
iElement.append('');
And , of course , more cleaner way:
var svg = angular.element(''); iElement.append(svg);
Fiddle: http://jsfiddle.net/cherniv/AgGwK/