Instance operations of common angular events
This article mainly explains "the example operation of commonly used angular events". Friends who are interested may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "the example operation of common angular events"!
. ng-cloak {display:none } `num`dblnum` data change: `cnum` lose focus: `bnum` get focus: `fnum` press keyboard: `knum` lift keyboard: `kunum` mouse press: `mdnum` mouse up: `munum` mouse enters: `menum` mouse leaves: `mlnum` mouse moves: `mmnum` var m=angular.module ('hd', []) m.controller (' ctrl', ['$mouse) Function ($scope) {$scope.num=0 / / ng-click method needs to be written into $scope $scope.run=function () {$scope.num++} $scope.dblnum=0$ scope.dblrun=function () {$scope.dblnum++} $scope.cnum=0$ scope.changerun=function () {$scope.cnum++} $scope.bnum=0$ scope.blurun=function () {$scope.bnum++} $scope.fnum=0$ scope.focusrun=function () {$scope.fnum++} $scope.knum=0$ scope.keydown=function () {$scope.knum++} $scope .kunum = 0$ scope.keyup=function () {$scope.kunum++} $scope.mdnum=0$ scope.mousedown=function () {$scope.mdnum++} $scope.munum=0$ scope.mouseup=function () {$scope.munum++} $scope.menum=0$ scope.mouseenter=function () {$scope.menum++} $scope.mlnum=0$ scope.mouseleave=function () {$scope.mlnum++} $scope.mmnum=0$ scope.mousemove=function () {$scope.mmnum++}]) I believe that you have a deeper understanding of the "instance operation of common angular events", so you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!