AngularJS Events


AngularJS Events have its own HTML events directives.

<div ng-app="myApp" ng-controller="myController">

<button ng-click="count = count + 1">Click me!</button>

<p>{{ count }}</p>

</div>
<script>
var app = angular.module('myApp', []);
app.controller('myController', function($scope) {
    $scope.count = 0;
});
</script>