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);
)]};
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.