In AngularJS ng-click directive defines a click event. Add ng-click attribute to a HTML button and update a model. Bind the model to html and see the variation.
Sample using “ng-click” directive
<button ng-click = “userClickCounter= userClickCounter + 1”>Click it !</button>
<p>Total count of clicks: {{ userClickCounter }}<