This repository has been archived by the owner on Nov 16, 2021. It is now read-only.
Releases: arkon/ng-inline-svg
Releases · arkon/ng-inline-svg
v8.1.0
v8.0.0
v7.0.0
v6.2.1
v6.2.0
Added [onSVGLoaded]
lifecycle hook which can be used to manipulate the SVG element prior to it being inserted
For example if you're loading an SVG:
<div [inlineSVG]="'img/myicon.svg'" [onSVGLoaded]="handleSVG"></div>
But you want to explicitly change its width attribute:
handleSVG(svg: SVGElement): SVGElement {
svg.setAttribute('width', '64');
return svg;
}
(Note that it doesn't work with symbols currently)
v6.1.0
- Server side rendering (thanks @renestalder!)