Skip to main content

Posts

AngularJs ng-mousedown events

The AngularJs ng-mousedown is use to specify the mousedown event features. The demo link click to view http://embed.plnkr.co/a1EUDA/preview The HTML code-sample: < button type ="button" ng-mousedown ="mousedown(IsDisplay)"> NG-MOUSEDOWN </ button > The AngularJs code-sample: var app = angular.module( 'myApp' , []); app.controller( 'ngMousedownCtrl' , [ "$scope" , function ($scope) {     $scope.domain = "code-sample.com" ;     $scope.IsDisplay = false ;     $scope.mousedown = function (clicked) {         alert( "My mousedown function is called." );         $scope.IsDisplay = clicked == true ? false : true ;     }; }]); The AngularJs and HTML code-sample: < !DOCTYPE html > < html > < head >     < meta charset ="utf-8" />     < t...

AngularJs ng-dbl-click | ng-dblclick Example

Hello everyone, I am going to share the how to use AngularJs ng-dbl-click directive and its example in detail. Live demo link for output : http://embed.plnkr.co/XaGHgcqK3Cr7GWcyTM0R/preview First, I am going to explain about ng-dbl-click directive . The ng-dbl-click directive is used the handle the user dbl click events of the applications. Second, I am going to explain about syntax of ng-dbl-click . < button type ="button" ng-dbl-click ="dblClick(IsDisplay)"> NG-DBL-CLICK </ button > Third, I am going to share the AngularJs click event code. var app = angular.module( 'myApp' , []); app.controller( 'ngDblClickCtrl' , [ "$scope" , function ($scope) {     $scope.domain = "code-sample.com" ;     $scope.IsDisplay = false ;     $scope.dblClick = function (clicked) {         alert( "My ng-dbl-Click function is called." );     ...

AngularJs ng-click Example

Hello everyone, I am going to share the how to use AngularJs ngClick directive and its example in detail. Live demo link for output : http://embed.plnkr.co/F7TcI8/preview First, I am going to explain about ngClick directive . The ngClick directive is used the handle the user click events of the applications. Second, I am going to explain about syntax of ngClick . < button type ="button" ng-click ="clickMe(IsDisplay)"> NG-CLICK </ button >   Third, I am going to share the AngularJs click event code. var app = angular.module( 'myApp' , []);     app.controller( 'ngClickCtrl' , [ "$scope" , function ($scope) {         $scope.domain = "code-sample.com" ;         $scope.IsDisplay = false ;         $scope.clickMe = function (clicked) {             $scope.I...

How to Handle multiple Async Ajax requests?

Hello everyone, I am going to share the multiple AJAX calls on a single page asynchronously. I think you know that the $.Ajax() is call asynchronously by nature but problem is that multiple(>1000 calls) Async AJAX calls on a single page.  i.e. $( function () {     $.ajax({         type: "GET" ,         url: "https://api.github.com/users/anilsingh581" ,         success: function (data) { alert(data); }     });     $.ajax({         type: "GET" ,         url: "https://api.github.com/users/anilsingh5812" ,         success: function (data) { alert(data); }     });     $.ajax({         type: "GET" ,     ...