Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

timeout angularjs

var myapp = angular.module("myapp", []);

myapp.controller("DIController", function($scope, $timeout){

    $scope.callAtTimeout = function() {
        console.log("$scope.callAtTimeout - Timeout occurred");
    }

    $timeout( function(){ $scope.callAtTimeout(); }, 3000);
});
Source by tutorials.jenkov.com #
 
PREVIOUS NEXT
Tagged: #timeout #angularjs
ADD COMMENT
Topic
Name
8+2 =