Controllers are used to control the flow of data in AngularJS application. ng-controller directive is used to define controller. Controllers…
AngularJS provides event directives. There are some common events provided by AngularJS to use in HTML. ng-mousedown - (onmousedown in…