What is the recommended approach for changing the mouse cursor programmatically in Angular?
For instance:
HTML:
<div [style.cursor]="cursorStyle">Content goes here</div>
or
<div [ngStyle]="{ 'cursor': cursorStyle }">Content goes here</div>
TS:
setCursorPointer() {
this.cursorStyle = 'pointer';
}
setCursorDefault() {
this.cursorStyle = 'default';
}