I am generating svg from one of my directives. I need to add marker-start and marker-end attributes using ng-attr.
The following snippet works fine:
<path ng-attr-marker-end="{{line.markerEnd}}">...</path>
It generates a marker-end attribute as expected.
However, the following snippet does not work:
<path ng-attr-marker-start="{{line.markerStart}}">...</path>
It does not generate a marker-start attribute, but generates a marker attribute instead.
The same behaviour can be observed in the following snippet:
http://jsfiddle.net/t49Xa/2/
I discovered the bug in Angular 1.2.14 and I have also reproduced it in Angular 1.2.1. The bug exists both with Chrome 33.0.1750.146 and Firefox 27.0.1.