What are AngularJS Events?

AngularJS Provides number of events which are associated with the HTML controls. Events in AngularJS are as follows:
1. Mouse Events
2. Keyboard Events
3. Change Events

Angular vs React Tutorial Video

AngularJS Events

1. Mouse Events

AngularJS provides a way to bind event handlers for these events. It includes following events.

  • ng-click
  • ng-dblclick
  • ng-mousedown
  • ng-mouseup
  • ng-mouseenter
  • ng-mouseleave
  • ng-mousemove
  • ng-mouseover


<!DOCTYPE html>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<div ng-app="">
<p>Total Number of Clicks: {{ ClickCount }}</p>
<button ng-click = "ClickCount = ClickCount + 1">Click Me!</button>
<p>Total Number of Double Clicks: {{ ClickCount1 }}</p>
<button ng-dblclick= "ClickCount1 = ClickCount1 + 1">Click Me!</button>

Watch this What is Angular 8 video

AngularJS Events


2. Keyboard Events

It includes following events

  • ng-keydown
  • ng-keyup
  • ng-keypress

3. Change Events

If you need to know when an input element state alters due to user interaction you can use the ng-change.

If you want to learn about Angular Modules, refer to our Angular blog!

Course Schedule

Name Date
Web Development Courses 2022-01-22 2022-01-23
(Sat-Sun) Weekend batch
View Details
Web Development Courses 2022-01-29 2022-01-30
(Sat-Sun) Weekend batch
View Details
Web Development Courses 2022-02-05 2022-02-06
(Sat-Sun) Weekend batch
View Details

Leave a Reply

Your email address will not be published. Required fields are marked *