This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
directive from class on svg element #10736
Closed
Description
I'm trying to create test directive on SVG element with class selector and it doesn't work. It works as attribute or element.
app.directive('test', function(){
return {
restrict: 'AEC',
templateNamespace: 'svg',
template: '<svg><circle cx="10" cy="10" r="10" /></svg>',
replace: true
};
})
<svg class='test' /> #bug
<svg test /> #ok
<test></test> #ok
<div class="test"></div> #ok
I created a plunker: http://plnkr.co/edit/XJevcJgrYy3l5MvOqg59?p=preview