AngularJS ng-click command
AngularJS examples
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>
try it"
Definition and Usage
ng-click directive tells the operating AngularJS HTML element is clicked to perform.
grammar
<Element ng-click = "expression "> </ element>
All HTML elements are supported.
Parameter Value
value | description |
---|---|
expression | Expression element is clicked after execution. |