AngularJS ng-click command
Each time the button is clicked, the count variable count is automatically incremented:
<Button ng-click = "count = count + 1" ng-init = "count = 0"> OK </ button>
Definition and Usage
ng-click directive tells the operating AngularJS HTML element is clicked to perform.
<Element ng-click = "expression "> </ element>
All HTML elements are supported.
|expression||Expression element is clicked after execution.|