I have several angular variables set like this:
$scope.pane = []; $scope.pane.count = 0; $scope.pane.max = 5;
Then I display the variables in HTML as follows:
{{pane.count}}
This works great and displays 0 as expected.
Now, if I update a variable at any time, this update will happen (I see using console.log), but the print version in HTML is not updated.
eg.
setTimeout(function(){ $scope.pane.count = 1; },1000);
I am using angular v1.3. What am I doing wrong?
source share