Add class with image name in image component

This commit is contained in:
Clemente Raposo 2024-12-05 00:44:41 +00:00 committed by Jack Anderson
parent 567d034c24
commit 8a7dfaddf8

View file

@ -27,9 +27,9 @@
-->
<ng-container *ngIf="imageSig() as img">
<svg-icon *ngIf="img.type === 'svg'" [svgClass]="klass || ''" [title]="title || ''" class="{{wrapperClass}}"
<svg-icon *ngIf="img.type === 'svg'" [svgClass]="klass || ''" [title]="title || ''" class="{{wrapperClass}} image-{{img.name}}"
name="{{img.name}}"></svg-icon>
<img *ngIf="img.type !=='svg'" alt="" src="{{img.path}}" class="{{klass}}" [title]="title || ''">
<img *ngIf="img.type !=='svg'" alt="" src="{{img.path}}" class="{{klass}} image-{{img.name}}" [title]="title || ''">
</ng-container>