Iv'e got a few angular vars :
$scope.clicks_17 = 0;
$scope.clicks_18 = 0;
$scope.clicks_19 = 0;
Then i want to access them like that, with dynamic variables :
$scope.more = function(){
date = new Date;
var h = date.getHours();
$scope.clicks_'+h' += 1;
}
But i can't make it work .. Any idea ? It means that the variable "h" needs to be "glued" at the end of the variable "clicks_".
Thank you !