Change the mouse pointer on ngclick Change the mouse pointer on ngclick angularjs angularjs

Change the mouse pointer on ngclick


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;}


All you have to do is use the cursor property

<div data-ng-click="myFun()" class="pointer"></div>.pointer {    cursor: pointer;}


Can be done via css, just add:

.yourClass { cursor: pointer; }

To your stylesheet