How can I trig automatic my variable at $scope object?
//controller
setInterval(function(){$scope.rand=Math.random(10)},1000);
//template
{{rand}}
Rand is not update on my page. How can I update my variable?
How can I trig automatic my variable at $scope object?
//controller
setInterval(function(){$scope.rand=Math.random(10)},1000);
//template
{{rand}}
Rand is not update on my page. How can I update my variable?