NodeJs Forum News
2014년 12월 30일 화요일
[AngularJS] Is it possible we Can set $interval and $timeout time dynamically
var sampleApp = angular.module('myApp',[]);
sampleApp.controller('
sanController',[ '$interval','$timeout',
function($interval,$timeout){
$scope.time=5000;
var ff=function(){
$scope.time=10000;
};
$timeout(ff,$scope.time);
$interval(function(){
console.log("Update time is:"+$scope.time);
},$scope.time);
)]};
댓글 없음:
댓글 쓰기
최근 게시물
이전 게시물
홈
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기