<i class="cursor-pointer" (click)="sort()"></i>
Our development team is grappling with numerous repetitive class definitions such as this one. I wanted to find a more efficient way to automatically add the cursor pointer style whenever a (click) event handler is present.
In the past, it was possible to style Angular attributes directly with CSS, but with Angular 2 and beyond, this is no longer feasible. This Stack Overflow thread explores options for changing the mouse pointer on ngclick events
[ng-click]{
cursor: pointer;
}