What is ng-click directive?

Submitted by: Muhammad
ng-click directive represents a AngularJS click event.

In below example, we've added ng-click attribute to a HTML button and added an expression to updated a model. Then we can see the variation.

<p>Total click: {{ clickCounter }}</p></td>
<button ng-click = "clickCounter = clickCounter + 1">Click Me!</button>
Submitted by: Muhammad

Read Online AngularJS Developer Job Interview Questions And Answers