I'm adding and removing class using ngClass. I want to change pointer. My html code of the component
[ngClass]="{'zoom-cursor': cyClass}"
I have a boolean called cyClass in the corresponding typescript code of the same component.
My css code is
.zoom-cursor {
cursor: url(../src/assets/img/zoom-cursor.svg), pointer!important;
}
If I'm moving mouse, the pointer image changes as expected. BUT if the mouse is not moving nothing changes. I want to see the changes immediately. It seems like angular is not rendering changes. I tried to trigger it manually but I couldn't find a way.
=and not==when filter an arraydetectChanges. PS the focus should be on the browser screen (if you click to delete console logs, after that you should click somewhere on browser)