angular-svg-icon
Advanced tools
Comparing version 4.1.1 to 4.2.0
@@ -48,2 +48,7 @@ (function (global, factory) { | ||
}; | ||
SvgIconRegistryService.prototype.unloadSvg = function (url) { | ||
if (this.iconsByUrl.has(url)) { | ||
this.iconsByUrl.delete(url); | ||
} | ||
}; | ||
return SvgIconRegistryService; | ||
@@ -78,3 +83,5 @@ }()); | ||
SvgIconComponent.prototype.ngOnDestroy = function () { | ||
this.icnSub.unsubscribe(); | ||
if (this.icnSub) { | ||
this.icnSub.unsubscribe(); | ||
} | ||
}; | ||
@@ -81,0 +88,0 @@ SvgIconComponent.prototype.setSvg = function (svg) { |
{ | ||
"name": "angular-svg-icon", | ||
"description": "Angular 2+ component for inlining SVGs allowing them to be easily styled with CSS.", | ||
"version": "4.1.1", | ||
"version": "4.2.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -14,2 +14,3 @@ import { Http } from '@angular/http'; | ||
loadSvg(url: string): Observable<SVGElement>; | ||
unloadSvg(url: string): void; | ||
} |
@@ -41,2 +41,7 @@ import { Injectable } from '@angular/core'; | ||
}; | ||
SvgIconRegistryService.prototype.unloadSvg = function (url) { | ||
if (this.iconsByUrl.has(url)) { | ||
this.iconsByUrl.delete(url); | ||
} | ||
}; | ||
return SvgIconRegistryService; | ||
@@ -43,0 +48,0 @@ }()); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}],"unloadSvg":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SvgIconRegistryService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/http","name":"Http"}]}],"loadSvg":[{"__symbolic":"method"}],"unloadSvg":[{"__symbolic":"method"}]}}}}] |
@@ -17,3 +17,5 @@ import { Component, ElementRef, Input, Optional, Renderer, SkipSelf } from '@angular/core'; | ||
SvgIconComponent.prototype.ngOnDestroy = function () { | ||
this.icnSub.unsubscribe(); | ||
if (this.icnSub) { | ||
this.icnSub.unsubscribe(); | ||
} | ||
}; | ||
@@ -20,0 +22,0 @@ SvgIconComponent.prototype.setSvg = function (svg) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27749
311