I have some angular variables set like so:
$scope.pane = [];
$scope.pane.count = 0;
$scope.pane.max = 5;
Then I display the variables in the HTML like this:
{{pane.count}}
This works fine and displays 0 as expected.
Now if I update the variable at any point, the update does happen (I can see using console.log) but the printed version in the HTML does not update.
E.g.
setTimeout(function(){
$scope.pane.count = 1;
},1000);
I am using Angular v1.3. What am I doing wrong?
paneshould need to be{}object instead of array.