[Solved] how do I dynamically toggle a button image using different font-awesome images? [closed]
You can use simple boolean value in the component and *ngIf statement in HTML to show/hide necessary icon (or any other element), which will be based on that boolean value. You also need to add (click)=”isPlaying = !isPlaying” to that icons to trigger the state: HTML: <i class=”fa fa-play-circle” aria-hidden=”true” *ngIf=”!isPlaying” (click)=”isPlaying = !isPlaying”></i> <i … Read more