angular-svg-icon
Advanced tools
Comparing version 18.0.0 to 18.0.1
@@ -8,3 +8,3 @@ import { OnDestroy } from '@angular/core'; | ||
private iconReg; | ||
src: import("@angular/core").InputSignal<string>; | ||
src: import("@angular/core").InputSignal<string | undefined>; | ||
name: import("@angular/core").InputSignal<string | undefined>; | ||
@@ -38,3 +38,3 @@ stretch: import("@angular/core").InputSignal<boolean>; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<SvgIconComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<SvgIconComponent, "svg-icon", never, { "src": { "alias": "src"; "required": true; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "stretch": { "alias": "stretch"; "required": false; "isSignal": true; }; "applyClass": { "alias": "applyClass"; "required": false; "isSignal": true; }; "svgClass": { "alias": "svgClass"; "required": false; "isSignal": true; }; "klass": { "alias": "class"; "required": false; "isSignal": true; }; "viewBox": { "alias": "viewBox"; "required": false; "isSignal": true; }; "svgAriaLabel": { "alias": "svgAriaLabel"; "required": false; "isSignal": true; }; "svgStyle": { "alias": "svgStyle"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<SvgIconComponent, "svg-icon", never, { "src": { "alias": "src"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "stretch": { "alias": "stretch"; "required": false; "isSignal": true; }; "applyClass": { "alias": "applyClass"; "required": false; "isSignal": true; }; "svgClass": { "alias": "svgClass"; "required": false; "isSignal": true; }; "klass": { "alias": "class"; "required": false; "isSignal": true; }; "viewBox": { "alias": "viewBox"; "required": false; "isSignal": true; }; "svgAriaLabel": { "alias": "svgAriaLabel"; "required": false; "isSignal": true; }; "svgStyle": { "alias": "svgStyle"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>; | ||
} |
{ | ||
"name": "angular-svg-icon", | ||
"description": "Angular 18 component and service for inlining SVGs allowing them to be easily styled with CSS.", | ||
"version": "18.0.0", | ||
"version": "18.0.1", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/czeckd/angular-svg-icon.git" | ||
"url": "https://github.com/czeckd/angular-svg-icon.git" | ||
}, | ||
@@ -38,2 +38,2 @@ "author": "David Czeck", | ||
"sideEffects": false | ||
} | ||
} |
@@ -104,4 +104,9 @@ [![npm version](https://badge.fury.io/js/angular-svg-icon.svg)](https://badge.fury.io/js/angular-svg-icon) | ||
If svg was previously loaded via registry with name it can be used like this: | ||
Loading with a name: | ||
```html | ||
<svg-icon src="images/eye.svg" name="eye" [svgStyle]="{ 'width.px':90 }"></svg-icon> | ||
``` | ||
If the SVG was previously loaded with a name either via the component or registry, then it can be used like this: | ||
```html | ||
<svg-icon name="eye" [svgStyle]="{ 'width.px':90 }"></svg-icon> | ||
@@ -108,0 +113,0 @@ ``` |
Sorry, the diff of this file is not supported yet
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
119118
882
344