czeckd/angular-svg-icon

input [class] only accepts one class

MickL opened this issue · 2 comments

MickL commented

If I see it right then [class] only accepts one string input but not multiple classes. For example the following is not working:

<svg-icon src="assets/icons/arrow.svg" [class]="'icon icon-large'"></svg-icon>

I would love to see <svg-icon> to either accept string with multiple classes, as shown above, OR accept string | string[].

@MickL — just to confirm, this is not working for you in v11.1.2?

I made some changes that should help with string[] in angular-svg-icon@11.2.0. Please let me know if that takes care of your issue.