arkon / ng-inline-svg

[Inactive] Angular directive for inserting an SVG file inline within an element.
https://echeung.me/ng-inline-svg/
MIT License
210 stars 88 forks source link

I've had a problem with this implementation #87

Closed michelribeiro closed 6 years ago

michelribeiro commented 6 years ago

I'm calling <span class="icon" aria-label="icon" [cacheSVG]='true' [inlineSVG]="'./assets/svg/debito-conta.svg'" *ngIf="item.id ===3">

When I enter the page it loads, when I go to a next step and I return it gives this error.

ERROR TypeError: rxjs_1.of is not a function at SVGCacheService.getSVG (svg-cache.service.js:29) at InlineSVGDirective._insertSVG (inline-svg.directive.js:71) at InlineSVGDirective.ngOnChanges (inline-svg.directive.js:42) at checkAndUpdateDirectiveInline (core.js:12348) at checkAndUpdateNodeInline (core.js:13876) at checkAndUpdateNode (core.js:13819) at debugCheckAndUpdateNode (core.js:14712) at debugCheckDirectivesFn (core.js:14653) at Object.eval [as updateDirectives] (FormaPagamentoComponent.html:19) at Object.debugUpdateDirectives [as updateDirectives] (core.js:14638)

arkon commented 6 years ago

Upgrade to rxjs 6 or use rxjs-compat.