News for hackers. Stuff that matters.
Re:Replacing most of D3.js with pure SVG and AngularJS by almost on Sunday December 01, 2013 @03:42PM (#6829211)
Really cool, I'm sure there are projects where this would be very helpful (although I don't see either of Angular or D3 replacing each other any time soon).

The ng-attr-x thing is a neat hack but it's a bit unwieldy. How about adding a d3-svg directive that turns itself into an svg element once Angular is done loading. You can hide it with CSS so it doesn't flash up random garbage on the screen and within it you can use regular SVG attributes.

There are no comments on this comment yet.