angular-svg-icon icon indicating copy to clipboard operation
angular-svg-icon copied to clipboard

Input `applyClass` does not take in account `[class.name]` and `[ngClass]`

Open MickL opened this issue 4 years ago • 2 comments

When applyClass using both [class.name] and [ngClass] are not applied:

<svg-icon src="assets/icons/arrow.svg" class="icon" [ngClass]="{'icon-lg': true}" [class.icon-lg]="true" [applyClass]="true"></svg-icon>

Results in:

<svg ... class="icon"></svg>

MickL avatar Feb 19 '21 11:02 MickL

I think we can read it through this.el.nativeElement.classList then just pass it down to this.setClass

indraraj26 avatar Aug 12 '21 18:08 indraraj26