Change the mouse pointer on ngclick

skmvasu picture skmvasu · Sep 19, 2013 · Viewed 91.9k times · Source

I've a div with the Angular ng-click directive attached to it. On hovering over this element the mouse pointer doesn't change. Is there a way to change it through CSS? I know I can simply attach an anchor tag to it, but I would like to know if this can be done.

Answer

André Dion picture André Dion · Sep 19, 2013

Is there a way to change it through css?

Yes, see cursor.

If you just wanted to target elements with the ng-click attribute, for example:

[ng-click],
[data-ng-click],
[x-ng-click] {
    cursor: pointer;
}