Skip to content

Instantly share code, notes, and snippets.

View planetflash's full-sized avatar

Paul Thomas planetflash

View GitHub Profile
@planetflash
planetflash / svg-base-fix.html
Last active July 22, 2016 22:40
For fixing the issue with Angular HTML5 routing requiring the <base href="/"></base> tag, causing svg sprite icons to no longer display due to their xlink:href property. Please note, this is not a bug with Angular or Angular UI Router, but how the <base> tag is meant to behave.
<svg><use xlink:href="{{absurl+'#svgvID'}}"></use></svg>