This listens to Angular route changes and on route change does the following:
- Replaces the link in
<use xlink:href="#some-id"></use>
by a path prefixed version - Replaces the fill property in referenced SVGs by a path prefixed version
- Replaces the style in
<svg style="fill: url(#gradient)">
with a prefixed version
Adapted from Gist by Leon Derijke