Answers for "angular timeout example typescript"

2

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);
});
Posted by: Guest on November-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language