Skip to content

Commit

Permalink
refactor: replace the ngClass with class for gui-icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Apr 30, 2024
1 parent 635290f commit f956f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/gui/button-toggle/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@a
styleUrls: ['./icon.scss'],
template: `
<img *ngIf="isUrl()" [src]="src" />
<i *ngIf="!isUrl()" [ngClass]="src"></i>
<i *ngIf="!isUrl()" [class]="src"></i>
`,
host: {
class: 'gui-icon',
Expand Down

0 comments on commit f956f90

Please sign in to comment.