Skip to content

Commit

Permalink
Allow any for class and null for svgStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
czeckd committed Feb 24, 2021
1 parent 8d27cf4 commit 61bed6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "svg-icon",
"description": "Angular 11 component for inlining SVGs allowing them to be easily styled with CSS.",
"version": "11.1.2",
"version": "11.1.3",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-svg-icon.git"
Expand Down
2 changes: 1 addition & 1 deletion projects/angular-svg-icon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-svg-icon",
"description": "Angular 11 component for inlining SVGs allowing them to be easily styled with CSS.",
"version": "11.1.2",
"version": "11.1.3",
"repository": {
"type": "git",
"url": "https://github.com/czeckd/angular-svg-icon.git"
Expand Down
6 changes: 3 additions & 3 deletions projects/angular-svg-icon/src/lib/svg-icon.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export class SvgIconComponent implements OnInit, OnDestroy, OnChanges, DoCheck {
@Input() applyClass = false;
/** @deprecated since 9.1.0 */
@Input() applyCss = false;
@Input() svgClass: string;
@Input() svgClass: any;
// tslint:disable-next-line:no-input-rename
@Input('class') klass: string;
@Input('class') klass: any;
@Input() viewBox: string;

// Adapted from ngStyle
@Input()
set svgStyle(v: {[key: string]: any }) {
set svgStyle(v: {[key: string]: any }|null) {
this._svgStyle = v;
if (!this.differ && v) {
this.differ = this.differs.find(v).create();
Expand Down

0 comments on commit 61bed6c

Please sign in to comment.