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 chan
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
If you are using datatables, you have to override the default datatables.css settings and add the following code to custom CSS, In the code below row-select is the class that I added on datatables in my HTML page.
table.row-select.dataTable tbody td
{
cursor: pointer;
}
Yes you can achieve it simply through CSS, nothing special about AngularJS here.
<div ng-click="myAngularFunctionWithinController()" style="cursor: hand;cursor: pointer;">
</div>
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;
}