Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Releases: arkon/ng-inline-svg

v8.1.0

02 Oct 02:58
Compare
Choose a tag to compare
  • Explicitly fetches symbols and appends them into the <svg> element, which should resolve issues around how they were handled differently than regular SVG files

v8.0.0

09 Jun 16:02
Compare
Choose a tag to compare
  • Fixes support for lazy loaded modules (#80)

v7.0.0

07 May 12:48
Compare
Choose a tag to compare
  • For Angular 6.0.0+

v6.2.1

25 Apr 22:56
Compare
Choose a tag to compare
  • Added a reference to the parent element as the second argument to onSVGLoaded

v6.2.0

24 Apr 23:35
Compare
Choose a tag to compare

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

21 Mar 23:51
Compare
Choose a tag to compare

v6.0.0

01 Feb 02:57
Compare
Choose a tag to compare
  • Requires Angular 5

v5.1.4

27 Jan 00:57
Compare
Choose a tag to compare
  • Fix base URL not being prepended for symbol IDs (#57)

v5.1.1

05 Dec 01:38
Compare
Choose a tag to compare
  • Fixes a regression introduced in v5.1.0 (#50)

v5.1.0

03 Dec 17:59
Compare
Choose a tag to compare